From eff66f83036aa6a343480ed833af6635487d6d68 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Tue, 6 Jan 2009 18:43:11 +0000 Subject: [PATCH] fix --- PLCWWW.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PLCWWW.spec b/PLCWWW.spec index 6f20047..a176396 100644 --- a/PLCWWW.spec +++ b/PLCWWW.spec @@ -71,8 +71,9 @@ if [ ! -d $drupal_settings_dir ] ; then exit 1 fi pushd $drupal_settings_dir +# tune $db_url if [ ! -f settings.php ] ; then - sed -e 's|^[ \t]*\$db_url|$db_url="pgsql://" . PLC_DB_USER . ":" . PLC_DB_PASSWORD . "@" . PLC_DB_HOST . ":" PLC_DB_PORT . "/drupal";|' \ + sed -e 's|^[ \t]*\$db_url.*|require_once("plc_config.php");$db_url="pgsql://" . PLC_DB_USER . ":" . PLC_DB_PASSWORD . "@" . PLC_DB_HOST . ":" . PLC_DB_PORT . "/drupal";|' \ default.settings.php > settings.php chown apache:apache settings.php chmod 444 settings.php -- 2.43.0