Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
80143633
Commit
80143633
authored
13 years ago
by
kaloyane
Browse files
Options
Downloads
Patches
Plain Diff
[LMS-2559] copy installation tarball to the correct backup directory after upgrade
SVN: 23196
parent
13f607af
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
installation/resource/installer/bin/upgrade.sh
+9
-4
9 additions, 4 deletions
installation/resource/installer/bin/upgrade.sh
openbis/dist/admin/upgrade.sh
+9
-4
9 additions, 4 deletions
openbis/dist/admin/upgrade.sh
screening/dist/admin/upgrade.sh
+9
-4
9 additions, 4 deletions
screening/dist/admin/upgrade.sh
with
27 additions
and
12 deletions
installation/resource/installer/bin/upgrade.sh
+
9
−
4
View file @
80143633
...
...
@@ -12,6 +12,8 @@ OPENBIS_INSTALL_DIR=$BASE/..
TARBALL
=
$1
INSTALLER_DIR
=
${
TARBALL
%.tar.gz
}
mkdir
-p
$OPENBIS_INSTALL_DIR
/backup
pushd
$ROOT_DIR
>
/dev/null
echo
"Extracting installation tarball
$TARBALL
.."
...
...
@@ -25,14 +27,17 @@ sed -i '' "$sed_params" $INSTALLER_DIR/console.properties
# run the installation
$INSTALLER_DIR
/run-console.sh
rm
-rf
$INSTALLER_DIR
echo
"Moving
$TARBALL
to
$OPENBIS_INSTALL_DIR
/backup ..."
mkdir
-p
$OPENBIS_INSTALL_DIR
/backup
mv
$TARBALL
$OPENBIS_INSTALL_DIR
/backup
BACKUP_DIR_NAME
=
`
ls
-rt
$OPENBIS_INSTALL_DIR
/backup |
tail
-1
`
BACKUP_DIR
=
$OPENBIS_INSTALL_DIR
/backup/
$BACKUP_DIR_NAME
echo
"Moving
$TARBALL
to
$BACKUP_DIR
..."
mv
$TARBALL
$BACKUP_DIR
}
BASE
=
`
dirname
"
$0
"
`
if
[
${
BASE
#/
}
==
${
BASE
}
]
;
then
BASE
=
"
`
pwd
`
/
${
BASE
}
"
...
...
This diff is collapsed.
Click to expand it.
openbis/dist/admin/upgrade.sh
+
9
−
4
View file @
80143633
...
...
@@ -49,6 +49,8 @@ OPENBIS_INSTALL_DIR=$BASE/..
TARBALL
=
$1
INSTALLER_DIR
=
${
TARBALL
%.tar.gz
}
mkdir
-p
$OPENBIS_INSTALL_DIR
/backup
pushd
$ROOT_DIR
>
/dev/null
echo
"Extracting installation tarball
$TARBALL
.."
...
...
@@ -62,14 +64,17 @@ sed -i '' "$sed_params" $INSTALLER_DIR/console.properties
# run the installation
$INSTALLER_DIR
/run-console.sh
rm
-rf
$INSTALLER_DIR
echo
"Moving
$TARBALL
to
$OPENBIS_INSTALL_DIR
/backup ..."
mkdir
-p
$OPENBIS_INSTALL_DIR
/backup
mv
$TARBALL
$OPENBIS_INSTALL_DIR
/backup
BACKUP_DIR_NAME
=
`
ls
-rt
$OPENBIS_INSTALL_DIR
/backup |
tail
-1
`
BACKUP_DIR
=
$OPENBIS_INSTALL_DIR
/backup/
$BACKUP_DIR_NAME
echo
"Moving
$TARBALL
to
$BACKUP_DIR
..."
mv
$TARBALL
$BACKUP_DIR
}
BASE
=
`
dirname
"
$0
"
`
if
[
${
BASE
#/
}
==
${
BASE
}
]
;
then
BASE
=
"
`
pwd
`
/
${
BASE
}
"
...
...
This diff is collapsed.
Click to expand it.
screening/dist/admin/upgrade.sh
+
9
−
4
View file @
80143633
...
...
@@ -51,6 +51,8 @@ OPENBIS_INSTALL_DIR=$BASE/..
TARBALL
=
$1
INSTALLER_DIR
=
${
TARBALL
%.tar.gz
}
mkdir
-p
$OPENBIS_INSTALL_DIR
/backup
pushd
$ROOT_DIR
>
/dev/null
echo
"Extracting installation tarball
$TARBALL
.."
...
...
@@ -64,14 +66,17 @@ sed -i '' "$sed_params" $INSTALLER_DIR/console.properties
# run the installation
$INSTALLER_DIR
/run-console.sh
rm
-rf
$INSTALLER_DIR
echo
"Moving
$TARBALL
to
$OPENBIS_INSTALL_DIR
/backup ..."
mkdir
-p
$OPENBIS_INSTALL_DIR
/backup
mv
$TARBALL
$OPENBIS_INSTALL_DIR
/backup
BACKUP_DIR_NAME
=
`
ls
-rt
$OPENBIS_INSTALL_DIR
/backup |
tail
-1
`
BACKUP_DIR
=
$OPENBIS_INSTALL_DIR
/backup/
$BACKUP_DIR_NAME
echo
"Moving
$TARBALL
to
$BACKUP_DIR
..."
mv
$TARBALL
$BACKUP_DIR
}
BASE
=
`
dirname
"
$0
"
`
if
[
${
BASE
#/
}
==
${
BASE
}
]
;
then
BASE
=
"
`
pwd
`
/
${
BASE
}
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment