From 200f3287cd8effe43bc7802b5c77e354f83ef2b6 Mon Sep 17 00:00:00 2001
From: kohleman <kohleman>
Date: Thu, 11 Feb 2010 14:26:52 +0000
Subject: [PATCH] changed all ~ to ~openbis

SVN: 14716
---
 .../source/bash/sprint_post_install.sh        | 19 ++++++++++---------
 1 file changed, 10 insertions(+), 9 deletions(-)

diff --git a/openbis_all/source/bash/sprint_post_install.sh b/openbis_all/source/bash/sprint_post_install.sh
index a74c3565105..40f202cc9a1 100755
--- a/openbis_all/source/bash/sprint_post_install.sh
+++ b/openbis_all/source/bash/sprint_post_install.sh
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Central post install script for all openBIS servers
 
-export BIN=~/bin
+export BIN=~openbis/bin
 export SERVER=`uname -n`
 
 export SPRINT=cisd-bamus
@@ -16,19 +16,19 @@ export BASYSBIO=bs-dsvr10.ethz.ch
 
 function create_individual_greeting_message {
 # Creates an individual greeting message
-	if [ -f ~/config/openbis_instance.txt ]; then
-	   export OPENBIS_DICT=~/sprint/openBIS-server/apache-tomcat/webapps/openbis/common-dictionary.js
-	   export SERVER_INSTANCE_NAME=`cat ~/config/openbis_instance.txt`
+	if [ -f ~openbis/config/openbis_instance.txt ]; then
+	   export OPENBIS_DICT=~openbis/sprint/openBIS-server/apache-tomcat/webapps/openbis/common-dictionary.js
+	   export SERVER_INSTANCE_NAME=`cat ~openbis/config/openbis_instance.txt`
 	   perl -pe 's/openbis_instance: "",/openbis_instance: "$ENV{SERVER_INSTANCE_NAME}",/' -i $OPENBIS_DICT
 	fi
 }
 
 function restore_loginHeader {
-  if [ -f ~/config/loginHeader.html ]; then
+  if [ -f ~openbis/config/loginHeader.html ]; then
     echo restoring loginHeader.html
-    cp -r ~/config/images ~/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 -r ~openbis/config/images ~openbis/sprint/openBIS-server/apache-tomcat/webapps/openbis/
+    cp ~openbis/config/loginHeader.html ~openbis/sprint/openBIS-server/apache-tomcat/webapps/openbis/
+    cp ~openbis/config/help.html ~openbis/sprint/openBIS-server/apache-tomcat/webapps/openbis/
   fi
 }
 
@@ -67,6 +67,7 @@ case "$SERVER" in
 	echo AGRONOMICS:$AGRONOMICS;
 	restore_loginHeader
 	create_individual_greeting_message
+	unzip -q ~openbis/config/
 	mv ~openbis/datastore_server-plugins.jar ~openbis/sprint/datastore_server/lib
 	$BIN/sprint_post_install_agronomics.sh
 	;;
@@ -91,4 +92,4 @@ case "$SERVER" in
 	echo Wrong Server! $SERVER is not in the list of openBIS Servers.;
 	exit 1;
 	;;
-esac
\ No newline at end of file
+esac
-- 
GitLab