Update postinstall.sh

This commit is contained in:
André Bauer 2016-10-31 16:32:53 +01:00 committed by GitHub
parent af6f10def5
commit ab29cfec32

View file

@ -44,7 +44,7 @@ else
test -f /var/lib/pgsql/data/pg_hba.conf.bak || cp /var/lib/pgsql/data/pg_hba.conf /var/lib/pgsql/data/pg_hba.conf.bak
echo "allow login via username and password in postgresql"
egrep -v "^#.*$" < /var/lib/pgsql/data/pg_hba.conf.bak | sed 's/ident/md5/g' > /var/lib/pgsql/data/pg_hba.conf
egrep -v "^#.*$" < /var/lib/pgsql/data/pg_hba.conf.bak | sed 's/ident/trust/g' > /var/lib/pgsql/data/pg_hba.conf
echo "restarting postgresql server"
${INIT_CMD} restart postgresql