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:
André Bauer 2016-10-31 15:46:37 +01:00 committed by GitHub
parent 5db05f34b8
commit e4d3f4704b
2 changed files with 10 additions and 1 deletions

View file

@ -19,7 +19,7 @@ targets:
sles-12:
dependencies:
- nginx
- postgresql
- postgresql-server
before:
- uname -a
- ruby -v

View file

@ -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