From 60a61adbced022a0ec93fbb246a0f591a5d519f3 Mon Sep 17 00:00:00 2001 From: Max Khon Date: Wed, 24 Jun 2015 18:30:56 +0600 Subject: [PATCH] Use POSTGREST_USER. --- debian/postgrest.init.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/postgrest.init.d b/debian/postgrest.init.d index 6e7897fcd..cacf528a4 100755 --- a/debian/postgrest.init.d +++ b/debian/postgrest.init.d @@ -37,7 +37,7 @@ POSTGREST_OPTS="$POSTGREST_OPTS --v1schema public" start() { log_daemon_msg "Starting PostgreSQL REST API daemon" "postgrest" || true - if start-stop-daemon --start --quiet --oknodo --chuid postgrest --startas /usr/local/bin/postgrest-wrapper --exec $POSTGREST -- $POSTGREST_OPTS; then + if start-stop-daemon --start --quiet --oknodo --chuid ${POSTGREST_USER} --startas /usr/local/bin/postgrest-wrapper --exec $POSTGREST -- $POSTGREST_OPTS; then log_end_msg 0 || true else log_end_msg 1 || true