From df340595dd159d5a7909b5ef49f10db91d61f995 Mon Sep 17 00:00:00 2001 From: Andy Witter Date: Fri, 3 Jan 2014 13:01:58 -0500 Subject: [PATCH] Add librose-uri-perl debfile from 14.04 to db servers --- GenaSYS.sh | 5 +++-- templates/setup.sh | 19 +++++++++++++++---- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/GenaSYS.sh b/GenaSYS.sh index f938d46..5c7a706 100755 --- a/GenaSYS.sh +++ b/GenaSYS.sh @@ -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 " 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 diff --git a/templates/setup.sh b/templates/setup.sh index f01826c..72fd167 100755 --- a/templates/setup.sh +++ b/templates/setup.sh @@ -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 -- 2.11.0