Add librose-uri-perl debfile from 14.04 to db servers
authorAndy Witter <awitter@georgialibraries.org>
Fri, 3 Jan 2014 18:01:58 +0000 (13:01 -0500)
committerAndy Witter <awitter@georgialibraries.org>
Fri, 3 Jan 2014 18:01:58 +0000 (13:01 -0500)
GenaSYS.sh
templates/setup.sh

index f938d46..5c7a706 100755 (executable)
@@ -25,8 +25,8 @@
     PURPOSE_="Generate config files needed for Evergreen-ILS Cluster"
    SYNOPSIS_="$NAME_"
    REQUIRES_="standard GNU commands, apt, dpkg"
-    VERSION_="1.24"
-       DATE_="2010-09-23; last update: 2013-12-12"
+    VERSION_="1.25"
+       DATE_="2010-09-23; last update: 2014-01-03"
      AUTHOR_="Andy Witter <awitter@georgialibraries.org>"
         URL_="http://evergreen-ils.org"
    CATEGORY_="devel"
@@ -2696,6 +2696,7 @@ then
        cp -f "$TEMPLATEDIR/db/create_database_${PSQL_VERSION}.sql" "setup_${NODE_FOLDER}/create_database.sql"
        cp -f "$TEMPLATEDIR/db/eg_db_root.crontab" "setup_${NODE_FOLDER}"
        cp -f "$TEMPLATEDIR/db/eg_db_postgres.crontab" "setup_${NODE_FOLDER}"
+       cp -f "$TEMPLATEDIR/debs/librose-uri-perl_1.00-1_all.deb" "setup_${NODE_FOLDER}" #TODO remove in 14.04
        echo "CREATE ROLE evergreen PASSWORD" \'$DATABASE_PASSWORD\' "SUPERUSER CREATEDB CREATEROLE INHERIT LOGIN;" > "setup_${NODE_FOLDER}/create_db_user.sql"
 fi
 if echo ${NODE_FOLDER} | grep -q utility0
index f01826c..72fd167 100755 (executable)
@@ -549,10 +549,20 @@ then
                sleep 3
        fi
 
-if [ ! -e /var/backup ]
-then
-       mkdir -p /var/backup
-fi
+       if [ ! -e /var/backup ]
+       then
+               mkdir -p /var/backup
+       fi
+       
+       ## Add librose-uri-perl_1.00-1_all.deb from Ubuntu 14.04 to the db servers
+       ## this will be removed in GenaSYS-14.04
+       if [ -e ./librose-uri-perl_1.00-1_all.deb ]
+       then
+               echo
+               echo -e $COL_YELLOW"installing additional debs..."$COL_RESET
+               sleep 2
+               gdebi --n librose-uri-perl*.deb
+       fi
 chown postgres:postgres /var/backup
 
 echo
@@ -561,6 +571,7 @@ echo -e "Run pgtune then adjust kernel.shmmax and kernel.shmall accordingly for
 sleep 4
 fi
 
+
 ### Setup SIP
 if cat /etc/hostname | grep -q "sip0"
 then