From fc3ebd9d9c98c2fe92673888fe9b9ea735421dac Mon Sep 17 00:00:00 2001 From: milisbir Date: Thu, 21 Jun 2018 10:05:08 +0200 Subject: [PATCH] postgresql --- ayarlar/servisler/mbd/init.d/postgresql | 2 ++ 1 file changed, 2 insertions(+) mode change 100644 => 100755 ayarlar/servisler/mbd/init.d/postgresql diff --git a/ayarlar/servisler/mbd/init.d/postgresql b/ayarlar/servisler/mbd/init.d/postgresql old mode 100644 new mode 100755 index 942ac320c..fc08dd3b3 --- a/ayarlar/servisler/mbd/init.d/postgresql +++ b/ayarlar/servisler/mbd/init.d/postgresql @@ -26,6 +26,8 @@ case "$1" in chown -Rv postgres:postgres /srv/pgsql /run/postgresql su - postgres -c '/usr/bin/initdb -E UTF8 -D /srv/pgsql/data' fi + mkdir -p /run/postgresql + chown -Rv postgres:postgres /run/postgresql su - postgres -c '/usr/bin/pg_ctl start -W -D /srv/pgsql/data \ -l /srv/pgsql/data/logfile -o "-i" ' evaluate_retval