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
dc11addd
Commit
dc11addd
authored
13 years ago
by
felmer
Browse files
Options
Downloads
Patches
Plain Diff
LMS-2471 more console output
SVN: 22670
parent
f3c8fa0f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openbis_all/source/bash/install-servers.sh
+14
-1
14 additions, 1 deletion
openbis_all/source/bash/install-servers.sh
with
14 additions
and
1 deletion
openbis_all/source/bash/install-servers.sh
+
14
−
1
View file @
dc11addd
#! /bin/bash
#! /bin/bash
#
#
#
Usage: install-servers.sh <servers> <config snapshot repository> <builds fetching script> <config file list 1> ... <config file list n>
#
Installs openBIS AS and DSS.
#
#
# Usage: install-servers.sh <servers> <config snapshot repository> <builds fetching script> <config file list 1> ... <config file list n>
#
#
#
#
#
#
# Dependencies:
# - servers-shutdown.sh
# - create-config-snapshot.sh
# - restore-config-snapshot.sh
# - install.sh of the openBIS AS distribution
#
#
if
[
$#
-ne
4
]
;
then
if
[
$#
-ne
4
]
;
then
echo
"Usage: install-servers.sh <config snapshot repository> <builds fetching script> <config file list 1> ... <config file list n>"
echo
"Usage: install-servers.sh <config snapshot repository> <builds fetching script> <config file list 1> ... <config file list n>"
exit
1
exit
1
...
@@ -30,18 +37,24 @@ rm -rf "$OPENBIS_AS"
...
@@ -30,18 +37,24 @@ rm -rf "$OPENBIS_AS"
rm
-rf
"
$OPENBIS_DSS
"
rm
-rf
"
$OPENBIS_DSS
"
"
$FETCHING_SCRIPT
"
"
$FETCHING_SCRIPT
"
echo
"unzip openBIS-server*.zip"
unzip
-qu
openBIS-server
*
.zip
-d
"
$SERVERS
"
unzip
-qu
openBIS-server
*
.zip
-d
"
$SERVERS
"
echo
"unzip datastore_server-*.zip"
unzip
-qu
datastore_server-
*
.zip
-d
"
$SERVERS
"
unzip
-qu
datastore_server-
*
.zip
-d
"
$SERVERS
"
for
file
in
datastore_server_plugin-
*
.zip
;
do
for
file
in
datastore_server_plugin-
*
.zip
;
do
if
[
-f
$file
]
;
then
if
[
-f
$file
]
;
then
echo
"unzip
$file
"
unzip
-qu
-d
"
$SERVERS
/datastore_server"
$file
;
unzip
-qu
-d
"
$SERVERS
/datastore_server"
$file
;
fi
fi
done
done
rm
-f
openBIS-server
*
.zip
rm
-f
openBIS-server
*
.zip
rm
-f
datastore_server
*
.zip
rm
-f
datastore_server
*
.zip
echo
"==== Starting install script of the openBIS AS distribution"
"
$OPENBIS_AS
/install.sh"
"
$OPENBIS_AS
"
"
$OPENBIS_AS
/install.sh"
"
$OPENBIS_AS
"
echo
"==== Finished install script of the openBIS AS distribution"
YOUNGEST_REPOSITORY
=
`
ls
"
$REPOSITORY
"
|sort
-r
|sed q
`
YOUNGEST_REPOSITORY
=
`
ls
"
$REPOSITORY
"
|sort
-r
|sed q
`
echo
"==== Restore config snapshot
$YOUNGEST_REPOSITORY
"
"
$BIN_DIR
/restore-config-snapshot.sh"
"
$SERVERS
"
"
$REPOSITORY
/
$YOUNGEST_REPOSITORY
/"
"
$BIN_DIR
/restore-config-snapshot.sh"
"
$SERVERS
"
"
$REPOSITORY
/
$YOUNGEST_REPOSITORY
/"
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