This commit is contained in:
milisbir 2018-06-13 05:29:33 +02:00
parent 015f2c2d8e
commit 523d00ecfc
1 changed files with 1 additions and 1 deletions

View File

@ -23,8 +23,8 @@ case "$1" in
if [ ! -d /srv/pgsql/data ];then
install -v -dm700 /srv/pgsql/data
install -v -dm755 /run/postgresql
su - postgres -c '/usr/bin/initdb -D /srv/pgsql/data'
chown -Rv postgres:postgres /srv/pgsql /run/postgresql
su - postgres -c '/usr/bin/initdb -D /srv/pgsql/data'
fi
su - postgres -c '/usr/bin/pg_ctl start -W -D /srv/pgsql/data \
-l /srv/pgsql/data/logfile -o "-i" '