From 1a487d6c4874799ae27a0004053443ef8f053f09 Mon Sep 17 00:00:00 2001
From: Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Date: Thu, 8 Jan 2009 10:04:09 +0000
Subject: [PATCH] rollback to drupal 4.7

---
 PLCWWW.spec | 23 ++++++++++++-----------
 1 file changed, 12 insertions(+), 11 deletions(-)

diff --git a/PLCWWW.spec b/PLCWWW.spec
index 985570b..450a96d 100644
--- a/PLCWWW.spec
+++ b/PLCWWW.spec
@@ -72,20 +72,21 @@ if [ ! -d $drupal_settings_dir ] ; then
 fi
 pushd $drupal_settings_dir
 # tune $db_url
-if [ ! -f settings.php ] ; then
+if [ ! -f settings.php.distrib ] ; then
+    cp settings.php settings.php.distrib
     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
+        settings.php.distrib > settings.php
+#    chown apache:apache settings.php
+#    chmod 444 settings.php
 fi
 popd
-drupal_files_dirs="/var/www/html/files /var/www/html/sites/default/files"
-for dir in $drupal_files_dirs; do 
-    if [ ! -d $dir ] ; then
-	mkdir -p $dir
-	chown apache:apache $dir
-    fi
-done
+#drupal_files_dirs="/var/www/html/files /var/www/html/sites/default/files"
+#for dir in $drupal_files_dirs; do 
+#    if [ ! -d $dir ] ; then
+#	mkdir -p $dir
+#	chown apache:apache $dir
+#    fi
+#done
 # drupal install script cannot be invoked here yet - pgsql might not even be running
 
 %clean
-- 
2.47.0