From 931cc0bc845cf50ce53046a9c7aadca60618a541 Mon Sep 17 00:00:00 2001 From: milisbir Date: Wed, 13 Jun 2018 05:22:47 +0200 Subject: [PATCH] pgsql --- ayarlar/servisler/mbd/init.d/postgresql | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ayarlar/servisler/mbd/init.d/postgresql b/ayarlar/servisler/mbd/init.d/postgresql index 73d8b4d75..a59f9c1e7 100644 --- a/ayarlar/servisler/mbd/init.d/postgresql +++ b/ayarlar/servisler/mbd/init.d/postgresql @@ -34,10 +34,9 @@ case "$1" in start) log_info_msg "Starting PostgreSQL daemon..." - [ ! -d /srv/pgsql/data ] && install -dm755 -o postgres -g postgres /srv/pgsql/data - - install -dm755 -o postgres -g postgres /run/postgresql - + [ ! -d /srv/pgsql/data ] && install -v -dm700 /srv/pgsql/data && + [ ! -d /srv/pgsql/data ] && install -v -dm755 /run/postgresql && + chown -Rv postgres:postgres /srv/pgsql /run/postgresql su - postgres -c '/usr/bin/pg_ctl start -W -D /srv/pgsql/data \ -l /srv/pgsql/data/logfile -o "-i" '