git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e421460
)
Only manage access rules for MyPLC databses (planetlab5 and drupal). Ignore access...
author
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Tue, 21 Feb 2012 21:42:16 +0000
(16:42 -0500)
committer
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Tue, 21 Feb 2012 21:42:16 +0000
(16:42 -0500)
plc.d/postgresql
patch
|
blob
|
history
diff --git
a/plc.d/postgresql
b/plc.d/postgresql
index
2e87033
..
3b77e53
100755
(executable)
--- a/
plc.d/postgresql
+++ b/
plc.d/postgresql
@@
-92,8
+92,8
@@
case "$1" in
echo "timezone='UTC'" >> $postgresql_conf
######## /var/lib/pgsql/data/pg_hba.conf
-
# Disable access to al
l DBs from all hosts
-
sed -i -e '/^\(host\|loc
al\)/d' $pghba_conf
+
# Disable access to MyPLC and drupa
l DBs from all hosts
+
sed -i -e '/^\(host\|local\)\s\($PLC_DB_NAME\|drup
al\)/d' $pghba_conf
# Enable passwordless localhost access
echo "local all all trust" >>$pghba_conf