X-Git-Url: http://git.onelab.eu/?p=plcapi.git;a=blobdiff_plain;f=plc.d%2Fpostgresql;fp=plc.d%2Fpostgresql;h=3b77e53f5ced0ec25506edcfd38feb8f58dcefd1;hp=2e870338354928c14708c99716e82e263447810f;hb=269c65e50075def8b3f1b3d7a06b1f7dff77b483;hpb=e42146067a41cd93ea01a822fdc7bcd976c64cb6 diff --git a/plc.d/postgresql b/plc.d/postgresql index 2e87033..3b77e53 100755 --- 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 all DBs from all hosts - sed -i -e '/^\(host\|local\)/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