fix missing echo and change login to md5
This commit is contained in:
parent
e4d3f4704b
commit
af6f10def5
1 changed files with 2 additions and 2 deletions
|
@ -43,8 +43,8 @@ else
|
|||
echo "backuping postgres config"
|
||||
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
|
||||
|
||||
"allow login via username and password in postgresql"
|
||||
egrep -v "^#.*$" < /var/lib/pgsql/data/pg_hba.conf.bak | sed 's/ident/trust/g' > /var/lib/pgsql/data/pg_hba.conf
|
||||
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
|
||||
|
||||
echo "restarting postgresql server"
|
||||
${INIT_CMD} restart postgresql
|
||||
|
|
Loading…
Reference in a new issue