add todo note for f16
[plcapi.git] / plc.d / postgresql
index 3b77e53..a02ab57 100755 (executable)
@@ -51,7 +51,9 @@ case "$1" in
        MESSAGE=$"Starting PostgreSQL server"
        dialog "$MESSAGE"
        
-       ######## sysconfig 
+       ######## sysconfig
+# xxx on f16, the systemd init script won't read /etc/sysconfig/pgsql/postgresql any more
+# need to find out how to perform this configuration, if still needed
        # Set data directory and redirect startup output to /var/log/pgsql
        mkdir -p $(dirname $postgresql_sysconfig)
        touch $postgresql_sysconfig
@@ -92,8 +94,8 @@ case "$1" in
        echo "timezone='UTC'" >> $postgresql_conf
 
        ######## /var/lib/pgsql/data/pg_hba.conf
-    # Disable access to MyPLC and drupal DBs from all hosts
-    sed -i -e '/^\(host\|local\)\s\($PLC_DB_NAME\|drupal\)/d' $pghba_conf
+       # Disable access to MyPLC and drupal DBs from all hosts
+       sed -i -e '/^\(host\|local\)\s\($PLC_DB_NAME\|drupal\)/d' $pghba_conf
 
        # Enable passwordless localhost access
        echo "local all all trust" >>$pghba_conf