pgsql
This commit is contained in:
parent
389217111b
commit
931cc0bc84
|
@ -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" '
|
||||
|
|
Loading…
Reference in New Issue