[open-ils-commits] r8204 - branches/rel_1_2_1
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Dec 12 09:56:12 EST 2007
Author: erickson
Date: 2007-12-12 09:35:34 -0500 (Wed, 12 Dec 2007)
New Revision: 8204
Modified:
branches/rel_1_2_1/config.sh
Log:
backporting offline config generation to prevent config clobbering
Modified: branches/rel_1_2_1/config.sh
===================================================================
--- branches/rel_1_2_1/config.sh 2007-12-12 04:38:24 UTC (rev 8203)
+++ branches/rel_1_2_1/config.sh 2007-12-12 14:35:34 UTC (rev 8204)
@@ -205,6 +205,32 @@
_write '$main::config{index} = "config.cgi";';
+ # --------------------------------------------------------------------
+ # Now we'll write out the offline config
+ CONFIG_FILE='Open-ILS/src/offline/offline-config.pl';
+ rm -f "$CONFIG_FILE";
+ echo "Writing bootstrapping config to $CONFIG_FILE...";
+
+ _write "\$main::config{base_dir} = '$PREFIX/var/data/offline/';";
+ _write "\$main::config{bootstrap} = '$ETCDIR/opensrf_core.xml';";
+
+ STR='$main::config{dsn} =';
+ STR="$STR 'dbi:${DBDRVR}:host=";
+ STR="${STR}${DBHOST};dbname=";
+ STR="${STR}${DBNAME};port=";
+ STR="${STR}${DBPORT}';";
+ _write "$STR"
+
+ STR='$main::config{usr} =';
+ STR="$STR '$DBUSER';";
+ _write "$STR"
+
+ STR='$main::config{pw} =';
+ STR="$STR '$DBPW';";
+ _write "$STR"
+ # --------------------------------------------------------------------
+
+
prompt "";
prompt "";
prompt "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!";
More information about the open-ils-commits
mailing list