From b3012e966cbdd67fd5a7b676fbacc3fd2459fe77 Mon Sep 17 00:00:00 2001 From: sparkyx Date: Tue, 6 Jul 2004 20:09:36 +0000 Subject: [PATCH] bug 9574 --- install.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 787c4e12a..cc6cc8133 100755 --- a/install.sh +++ b/install.sh @@ -26,7 +26,8 @@ echo "The file install.log will be created with exec 3>install.log 2>&3 1>&3 #set -xv -version=4 +version=5 + VerifOutil() { RESULT="Verif. $1" A=`type $1 2> /dev/null` @@ -94,8 +95,10 @@ do if [ "$version" -ne $vers_db ] ; then ver_file="sql/update/"`echo $i |sed 's/[0-9]*//g'`$vers_db".sql" ver_file=`echo $ver_file|tr ' ' '_'` + if [ -f $ver_file ]; then echo "Applying patch for $i $ver_file" psql -U $OWNER $i -f $ver_file + fi else echo "ok" break @@ -123,6 +126,8 @@ cp -f style*.css $COMPTA_HOME/html cp -f html/*.js $COMPTA_HOME/html cp -fR addon $COMPTA_HOME/html cp -fR html/image/* $COMPTA_HOME/html/image +echo "***************" echo "Installation OK" +echo "***************" exec 3<&-