From dcb7c05b20b740e5fd2b1e2be96a57c4647b48e8 Mon Sep 17 00:00:00 2001
From: kohleman <kohleman>
Date: Fri, 16 Oct 2009 07:20:24 +0000
Subject: [PATCH] added user to pg_dump command added post_install_script to be
 run at the end of the installation

SVN: 12989
---
 openbis_all/source/bash/sprint_install.sh | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/openbis_all/source/bash/sprint_install.sh b/openbis_all/source/bash/sprint_install.sh
index 893036d93e0..f7fdcaa0349 100755
--- a/openbis_all/source/bash/sprint_install.sh
+++ b/openbis_all/source/bash/sprint_install.sh
@@ -46,7 +46,7 @@ echo Making a database dump...
 # A custom-format dump (-Fc flag) is not a script for psql, but instead must be
 # restored with pg_restore, for example:
 # pg_restore -d dbname filename
-pg_dump -Fc $DB_NAME > $DB_SNAPSHOT/$SERVERS_PREV_VER-$DB_NAMEi_${DATE}.dmp
+pg_dump -Uopenbis -Fc $DB_NAME > $DB_SNAPSHOT/$SERVERS_PREV_VER-$DB_NAMEi_${DATE}.dmp
 # we actually need to clean that up from time to time
 /usr/bin/find $DB_SNAPSHOT -type f -mtime +$DAYS_TO_RETAIN -exec rm {} \;
 
@@ -87,9 +87,14 @@ export JAVA_HOME=/usr
 cd
 mv -f *.zip tmp
 rm -rf openbis
+cd ~/sprint/openBIS-server
+rm apache-tomcat.zip install.sh openbis.conf openBIS.keystore openBIS.war passwd.sh server.xml service.properties tomcat-version.txt
 
 # Reset the rm command alias
 alias 'rm=rm -i'
 alias 'cp=cp -ipR'
 
-echo Done, run sprint_post_install.sh and all-up.sh to start the servers!
+echo Running ~/bin/sprint_post_install.sh
+~/bin/sprint_post_install.sh
+
+echo Done, run 'has-config-changed.sh' and start the servers!
-- 
GitLab