[open-ils-commits] r8196 - branches/rel_1_2

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Dec 11 10:05:28 EST 2007


Author: erickson
Date: 2007-12-11 09:44:59 -0500 (Tue, 11 Dec 2007)
New Revision: 8196

Modified:
   branches/rel_1_2/config.sh
Log:
backporting the "make config" offline config file creation

Modified: branches/rel_1_2/config.sh
===================================================================
--- branches/rel_1_2/config.sh	2007-12-11 02:36:53 UTC (rev 8195)
+++ branches/rel_1_2/config.sh	2007-12-11 14:44:59 UTC (rev 8196)
@@ -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