Update postinstall.sh
This commit is contained in:
parent
af6f10def5
commit
ab29cfec32
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue