From 9596efaaece0d876cd301ff9fce5d75f1a2483ca Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Tue, 6 Jan 2009 12:42:47 +0000 Subject: [PATCH] do not init drupal db if using 6.x --- plc.d/postgresql | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plc.d/postgresql b/plc.d/postgresql index 8105637..8099462 100755 --- a/plc.d/postgresql +++ b/plc.d/postgresql @@ -165,7 +165,9 @@ case "$1" in check if ! psql -U $PLC_DB_USER -c "" drupal >/dev/null 2>&1 ; then createdb -U postgres --encoding=UNICODE --owner=$PLC_DB_USER drupal - psql -U $PLC_DB_USER -f /var/www/html/database/database.pgsql drupal + # when using drupal 6.x, we must not do this + drupal_schema=/var/www/html/database/database.pgsql + [ -f $drupal_schema ] && psql -U $PLC_DB_USER -f $drupal_schema drupal fi check -- 2.47.0