adding db port to build/install process
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 20 Apr 2006 03:48:10 +0000 (03:48 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 20 Apr 2006 03:48:10 +0000 (03:48 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@3759 dcc99617-32d9-48b4-a31d-7c20da2025e4

config.sh
install.conf.default
install.sh

index fb29b3c..83b8947 100755 (executable)
--- a/config.sh
+++ b/config.sh
@@ -89,6 +89,9 @@ function buildConfig {
        prompt "Bootstrapping Database Host [$DBHOST] "
        read X; if [ ! -z "$X" ]; then DBHOST="$X"; fi;
 
+       prompt "Bootstrapping Database Port [$DBPORT] "
+       read X; if [ ! -z "$X" ]; then DBPORT="$X"; fi;
+
        prompt "Bootstrapping Database Name [$DBNAME] "
        read X; if [ ! -z "$X" ]; then DBNAME="$X"; fi;
 
@@ -156,6 +159,7 @@ function writeConfig {
        # db vars
        _write "DBDRVR=\"$DBDRVR\"";
        _write "DBHOST=\"$DBHOST\"";
+       _write "DBPORT=\"$DBPORT\"";
        _write "DBNAME=\"$DBNAME\"";
        _write "DBUSER=\"$DBUSER\"";
        _write "DBPW=\"$DBPW\"";
@@ -170,7 +174,8 @@ function writeConfig {
        STR='$main::config{dsn} =';
                STR="$STR 'dbi:${DBDRVR}:host=";
                STR="${STR}${DBHOST};dbname=";
-               STR="${STR}${DBNAME}';";
+               STR="${STR}${DBNAME};port=";
+               STR="${STR}${DBPORT}';";
        _write "$STR"
 
        STR='$main::config{usr} =';
index b08c890..02c40a4 100644 (file)
@@ -112,6 +112,7 @@ EVERGREENDIR="Evergreen/";
 # --------------------------------------------------------------------
 DBDRVR="Pg";
 DBHOST="127.0.0.1";
+DBPORT="5432";
 DBNAME="demo-dev";
 DBUSER="postgres";
 DBPW="";
index 9c7f774..9d741f6 100755 (executable)
@@ -117,7 +117,7 @@ function runInstall {
                echo ""
 
                MAKE="make $verbose APXS2=$APXS2 PREFIX=$PREFIX TMP=$TMP APR_HEADERS=$APR_HEADERS \
-                       APACHE2_HEADERS=$APACHE2_HEADERS LIBXML2_HEADERS=$LIBXML2_HEADERS \
+                       APACHE2_HEADERS=$APACHE2_HEADERS LIBXML2_HEADERS=$LIBXML2_HEADERS DBPORT=$DBPORT\
                        BINDIR=$BINDIR LIBDIR=$LIBDIR PERLDIR=$PERLDIR INCLUDEDIR=$INCLUDEDIR \
                        WEBDIR=$WEBDIR TEMPLATEDIR=$TEMPLATEDIR ETCDIR=$ETCDIR REPORTERDIR=$REPORTERDIR\
                        OPENSRFDIR=$OPENSRFDIR OPENILSDIR=$OPENILSDIR EVERGREENDIR=$EVERGREENDIR \