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
da047bdb
Commit
da047bdb
authored
15 years ago
by
kohleman
Browse files
Options
Downloads
Patches
Plain Diff
- added yeastx plugin restore as a function plus proper cleanup
- added help.html and pdf restore for dsu SVN: 15054
parent
a0f2730b
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/sprint_post_install.sh
+15
-5
15 additions, 5 deletions
openbis_all/source/bash/sprint_post_install.sh
with
15 additions
and
5 deletions
openbis_all/source/bash/sprint_post_install.sh
+
15
−
5
View file @
da047bdb
...
@@ -18,7 +18,7 @@ export BASYSBIO_TEST=openbis-test
...
@@ -18,7 +18,7 @@ export BASYSBIO_TEST=openbis-test
function
create_individual_greeting_message
{
function
create_individual_greeting_message
{
# Creates an individual greeting message
# Creates an individual greeting message
if
[
-f
~/config/openbis_instance.txt
]
;
then
if
[
-f
~/config/openbis_instance.txt
]
;
then
export
OPENBIS_DICT
=
~/sprint/openBIS-server/apache-tomcat/webapps/openbis/common-dictionary.js
export
OPENBIS_DICT
=
~
openbis
/sprint/openBIS-server/apache-tomcat/webapps/openbis/common-dictionary.js
export
SERVER_INSTANCE_NAME
=
`
cat
~/config/openbis_instance.txt
`
export
SERVER_INSTANCE_NAME
=
`
cat
~/config/openbis_instance.txt
`
perl
-pe
's/openbis_instance: "",/openbis_instance: "$ENV{SERVER_INSTANCE_NAME}",/'
-i
$OPENBIS_DICT
perl
-pe
's/openbis_instance: "",/openbis_instance: "$ENV{SERVER_INSTANCE_NAME}",/'
-i
$OPENBIS_DICT
fi
fi
...
@@ -26,13 +26,21 @@ function create_individual_greeting_message {
...
@@ -26,13 +26,21 @@ function create_individual_greeting_message {
function
restore_loginHeader
{
function
restore_loginHeader
{
if
[
-f
~/config/loginHeader.html
]
;
then
if
[
-f
~/config/loginHeader.html
]
;
then
echo
restoring loginHeader.html
echo
restoring loginHeader.html
...
cp
-r
~/config/images ~/sprint/openBIS-server/apache-tomcat/webapps/openbis/
cp
-r
~/config/images ~/sprint/openBIS-server/apache-tomcat/webapps/openbis/
cp
~/config/loginHeader.html ~/sprint/openBIS-server/apache-tomcat/webapps/openbis/
cp
~/config/loginHeader.html ~/sprint/openBIS-server/apache-tomcat/webapps/openbis/
cp
~/config/help.html ~/sprint/openBIS-server/apache-tomcat/webapps/openbis/
cp
~/config/help.html ~/sprint/openBIS-server/apache-tomcat/webapps/openbis/
fi
fi
}
}
function
add_yeastx_plugin
{
echo
copying yeastx...
unzip ~openbis/config/datastore_server_plugin
*
.zip
mv
~openbis/config/lib/datastore_server-plugins.jar ~openbis/sprint/datastore_server/lib
rmdir
~openbis/config/lib
rm
~/config/datastore_server_plugin
*
.zip
}
case
"
$SERVER
"
in
case
"
$SERVER
"
in
$SPRINT
)
$SPRINT
)
...
@@ -68,13 +76,15 @@ case "$SERVER" in
...
@@ -68,13 +76,15 @@ case "$SERVER" in
echo
AGRONOMICS:
$AGRONOMICS
;
echo
AGRONOMICS:
$AGRONOMICS
;
restore_loginHeader
restore_loginHeader
create_individual_greeting_message
create_individual_greeting_message
mv
~openbis/config/datastore_server-plugins.jar ~openbis/sprint/datastore_server/lib
add_yeastx_plugin
$BIN
/sprint_post_install_agronomics.sh
$BIN
/sprint_post_install_agronomics.sh
;;
;;
$DSU
)
$DSU
)
echo
DSU:
$DSU
;
echo
DSU:
$DSU
;
restore_loginHeader
restore_loginHeader
create_individual_greeting_message
create_individual_greeting_message
DSU_SERVER_HOME
=
~openbis/sprint/openBIS-server/apache-tomcat-5.5.26/webapps/openbis
cp
~/config/openBIS_for_DSU.pdf
$DSU_SERVER_HOME
;;
;;
$SCU
)
$SCU
)
echo
SCU:
$SCU
;
echo
SCU:
$SCU
;
...
@@ -85,14 +95,14 @@ case "$SERVER" in
...
@@ -85,14 +95,14 @@ case "$SERVER" in
echo
BASYSBIO:
$BASYSBIO
;
echo
BASYSBIO:
$BASYSBIO
;
restore_loginHeader
restore_loginHeader
create_individual_greeting_message
create_individual_greeting_message
mv
~openbis/config/datastore_server-plugins.jar ~openbis/sprint/datastore_server/lib
add_yeastx_plugin
$BIN
/sprint_post_install_basysbio.sh
$BIN
/sprint_post_install_basysbio.sh
;;
;;
$BASYSBIO_TEST
)
$BASYSBIO_TEST
)
echo
BASYSBIO_TEST:
$BASYSBIO_TEST
;
echo
BASYSBIO_TEST:
$BASYSBIO_TEST
;
restore_loginHeader
restore_loginHeader
create_individual_greeting_message
create_individual_greeting_message
mv
~openbis/config/datastore_server-plugins.jar ~openbis/sprint/datastore_server/lib
add_yeastx_plugin
$BIN
/sprint_post_install_basysbio.sh
$BIN
/sprint_post_install_basysbio.sh
;;
;;
*
)
*
)
...
...
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