git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
reverting
[plcapi.git]
/
plc.d
/
postgresql
diff --git
a/plc.d/postgresql
b/plc.d/postgresql
index
2e87033
..
c3c37b1
100755
(executable)
--- a/
plc.d/postgresql
+++ b/
plc.d/postgresql
@@
-51,7
+51,9
@@
case "$1" in
MESSAGE=$"Starting PostgreSQL server"
dialog "$MESSAGE"
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
# Set data directory and redirect startup output to /var/log/pgsql
mkdir -p $(dirname $postgresql_sysconfig)
touch $postgresql_sysconfig
@@
-92,7
+94,7
@@
case "$1" in
echo "timezone='UTC'" >> $postgresql_conf
######## /var/lib/pgsql/data/pg_hba.conf
echo "timezone='UTC'" >> $postgresql_conf
######## /var/lib/pgsql/data/pg_hba.conf
- # Disable access to
al
l DBs from all hosts
+ # Disable access to
MyPLC and drupa
l DBs from all hosts
sed -i -e '/^\(host\|local\)/d' $pghba_conf
# Enable passwordless localhost access
sed -i -e '/^\(host\|local\)/d' $pghba_conf
# Enable passwordless localhost access