X-Git-Url: http://git.onelab.eu/?p=plcrt.git;a=blobdiff_plain;f=plcrt.init;h=43d56ad7ff553817f54da1a2842acd0cb4d2b82d;hp=7a55d9b3a11715a0e14a020ccb3600140bf2f5bc;hb=40dff56a4c447dc5ff9e629d693d8805f6f5ad9c;hpb=71cce69ef755a1d9ea19a307f14acbf05e3dbf2a diff --git a/plcrt.init b/plcrt.init index 7a55d9b..43d56ad 100644 --- a/plcrt.init +++ b/plcrt.init @@ -232,7 +232,18 @@ case "$1" in check_rt_sendmail check_rt_custom # todo: restart httpd if needed. - # TODO: remove external permission + # NOTE: remove external permission + # This is needed to allow it to run without localhost + # TODO: find a better way to do this. + + # remove 'trust' entry from .conf file + sed -i -e "s/.*trust//g" $PGDATA/pg_hba.conf.d/${RT3_DB_NAME}.conf + if [ -n "$WROTE_PG_CONFIG" ] ; then + # NOTE: restart db to enable access by users granted above. + service plc restart postgresql + MESSAGE=$"Bootstrap RT 3 (please wait...)" + dialog "$MESSAGE" + fi result "$MESSAGE" ;;