Skip to content
Snippets Groups Projects
Commit ba47d65c authored by ribeaudc's avatar ribeaudc
Browse files

add: - Automatic installation of generic openBIS application file (should be...

add: - Automatic installation of generic openBIS application file (should be tested in the next Sprint release).

SVN: 9065
parent a1ef8034
No related branches found
No related tags found
No related merge requests found
...@@ -12,6 +12,9 @@ VER=$1 ...@@ -12,6 +12,9 @@ VER=$1
PREV_VER=$(( $VER - 1 )) PREV_VER=$(( $VER - 1 ))
DB_SNAPSHOT=db_snapshots/sprint$PREV_VER-lims_productive.sql DB_SNAPSHOT=db_snapshots/sprint$PREV_VER-lims_productive.sql
# Unalias rm command
unalias rm
echo Stopping the components... echo Stopping the components...
./sprint/openBIS-server/apache-tomcat/bin/shutdown.sh ./sprint/openBIS-server/apache-tomcat/bin/shutdown.sh
./sprint/download-server/download-service.sh stop ./sprint/download-server/download-service.sh stop
...@@ -23,7 +26,7 @@ rm -f $DB_SNAPSHOT ...@@ -23,7 +26,7 @@ rm -f $DB_SNAPSHOT
echo Installing openBIS server... echo Installing openBIS server...
mv sprint-$PREV_VER old mv sprint-$PREV_VER old
rm sprint rm -f sprint
mkdir sprint-$VER mkdir sprint-$VER
ln -s sprint-$VER sprint ln -s sprint-$VER sprint
cd sprint cd sprint
...@@ -33,15 +36,28 @@ cd openBIS-server ...@@ -33,15 +36,28 @@ cd openBIS-server
echo Installing download server... echo Installing download server...
cd .. cd ..
unzip ../download-server-S$VER* unzip ../download-server-S$VER*
cd download-server cd download-server
cp ~/old/sprint-$PREV_VER/download-server/etc/service.properties etc/ cp ~/old/sprint-$PREV_VER/download-server/etc/service.properties etc/
chmod 700 download-service.sh chmod 700 download-service.sh
export JAVA_HOME=/usr export JAVA_HOME=/usr
./download-service.sh start ./download-service.sh start
echo Installing generic openBIS...
cd ~
unzip openbis-S$VER*
WAR_FILE=openbis/genericopenbis.war
# Put the previous 'service.properties' file into the war file.
jar -uf $WAR_FILE -C old/sprint-$PREV_VER/openBIS-server/apache-tomcat/webapps/genericopenbis WEB-INF/classes/service.properties
# Just put the war file in the weapps directory, Tomcat will do the rest
mv $WAR_FILE sprint/openBIS-server/apache-tomcat/webapps
echo Doing some cleaning... echo Doing some cleaning...
cd cd
mv *.zip tmp mv *.zip tmp
rm -rf openbis
# Reset the rm command alias
alias 'rm=rm -i'
echo Done! echo Done!
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment