From: Thierry Parmentelat Date: Tue, 6 Jan 2009 18:43:11 +0000 (+0000) Subject: fix X-Git-Tag: PLEWWW-4.3-1~140 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=eff66f83036aa6a343480ed833af6635487d6d68;p=plewww.git fix --- 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