X-Git-Url: http://git.onelab.eu/?p=plcrt.git;a=blobdiff_plain;f=plcrt.init;h=eb918882c007e5dc9631df1bfed707169864f4ff;hp=96aa8f3de2e34daad99d6efda2f1e7850656b1e2;hb=9a6ad5734afe175b269778564ac6f9180b392473;hpb=73e5df77584685b14bc698f1fa7593eb7d6cdd68 diff --git a/plcrt.init b/plcrt.init index 96aa8f3..eb91888 100644 --- a/plcrt.init +++ b/plcrt.init @@ -49,7 +49,7 @@ function check_pg_hba () CONF=$PGDATA/pg_hba.conf.d/${NAME}.conf if [ ! -f $CONF ] ; then echo "host $NAME $USER 127.0.0.1/32 password" > $CONF - echo "host $NAME $USER $PLC_MONITOR_IP/32 password" >> $CONF + echo "host $NAME $USER $PLC_RT_IP/32 password" >> $CONF WROTE_PG_CONFIG="true" fi @@ -238,7 +238,7 @@ case "$1" in rm -f /etc/rt3/RT_SiteConfig.pm rm -f /etc/rt3/initialdata PATTERN="host all postgres 127.0.0.1/32 trust" - sed -i -e "s|$PATTERN||g" $PGDATA/pg_hba.conf.d/${RT3_DB_NAME}.conf + rm -f $PGDATA/pg_hba.conf.d/${RT3_DB_NAME}.conf sed -i -e "s/.*mailgate.*//g" /etc/aliases rm -f /etc/rt3/setup.finished