From 00b185f55bf37dfb5c29220218ff6e4a078a71db Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Thu, 19 Mar 2015 08:56:37 +0100 Subject: initscript: always use run_cmd_as_dbadmin Per hhorak's review. * postgresql.init.in (SU_POSTGRES): Remove unused variable. (reload): Use run_cmd_as_dbadmin. --- postgresql.init.in | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/postgresql.init.in b/postgresql.init.in index bf2e9ca..70058d6 100644 --- a/postgresql.init.in +++ b/postgresql.init.in @@ -51,8 +51,6 @@ then NAME=${NAME:3} fi -SU_POSTGRES="@SU_POSTGRES@" - # Set defaults for configuration variables PGENGINE=@bindir@ @@ -171,7 +169,8 @@ condrestart(){ reload() { - $SU_POSTGRES -c "@SCL_SOURCE@ $PGENGINE/pg_ctl reload -D '$PGDATA' -s" > /dev/null 2>&1 < /dev/null + run_cmd_as_dbadmin "$PGENGINE/pg_ctl reload -D '$PGDATA' -s" \ + /dev/null /dev/null } __single_comand() -- cgit