more packager.io fixe (#339)
- fix postgresql package name for sles12 - configure postgresql on centos to accept username/password logins
This commit is contained in:
parent
5db05f34b8
commit
e4d3f4704b
2 changed files with 10 additions and 1 deletions
|
@ -19,7 +19,7 @@ targets:
|
|||
sles-12:
|
||||
dependencies:
|
||||
- nginx
|
||||
- postgresql
|
||||
- postgresql-server
|
||||
before:
|
||||
- uname -a
|
||||
- ruby -v
|
||||
|
|
|
@ -40,8 +40,17 @@ else
|
|||
echo "preparing postgresql server"
|
||||
postgresql-setup initdb
|
||||
|
||||
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 "restarting postgresql server"
|
||||
${INIT_CMD} restart postgresql
|
||||
|
||||
echo "create postgresql bootstart"
|
||||
${INIT_CMD} enable postgresql.service
|
||||
fi
|
||||
|
||||
# create database
|
||||
|
|
Loading…
Reference in a new issue