From 53d18fd32ca64189e2df95d8305652ef17f23a1c Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Wed, 6 Jan 2010 06:43:40 +0000 Subject: [PATCH 1/1] for f12 --- plc.d/postgresql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plc.d/postgresql b/plc.d/postgresql index f4c2093..8b5739e 100755 --- a/plc.d/postgresql +++ b/plc.d/postgresql @@ -159,12 +159,12 @@ case "$1" in # Create the databases if necessary if ! psql -U $PLC_DB_USER -c "" $PLC_DB_NAME >/dev/null 2>&1 ; then - createdb -U postgres --encoding=UNICODE --owner=$PLC_DB_USER $PLC_DB_NAME + createdb -U postgres --template=template0 --encoding=UNICODE --owner=$PLC_DB_USER $PLC_DB_NAME psql -U $PLC_DB_USER -f /usr/share/plc_api/$PLC_DB_NAME.sql $PLC_DB_NAME fi check if ! psql -U $PLC_DB_USER -c "" drupal >/dev/null 2>&1 ; then - createdb -U postgres --encoding=UNICODE --owner=$PLC_DB_USER drupal + createdb -U postgres --template=template0 --encoding=UNICODE --owner=$PLC_DB_USER drupal psql -U $PLC_DB_USER -f /var/www/html/database/database.pgsql drupal fi check -- 2.43.0