From 2707df6cc761dcc2341faa8bafec5b4b4fa33e4d Mon Sep 17 00:00:00 2001 From: Max Rees Date: Mon, 22 Jul 2019 20:15:07 -0400 Subject: system/*, user/*: remove bashisms from initd scripts --- user/postgresql/postgresql.initd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'user/postgresql/postgresql.initd') diff --git a/user/postgresql/postgresql.initd b/user/postgresql/postgresql.initd index 846229a40..1c1a5dcf9 100644 --- a/user/postgresql/postgresql.initd +++ b/user/postgresql/postgresql.initd @@ -63,8 +63,8 @@ start_pre() { fi fi - local socket_dirs=$(get_config "unix_socket_directories" "/run/postgresql") - local port=$(get_config "port" "$port") + local socket_dirs="$(get_config "unix_socket_directories" "/run/postgresql")" + local port="$(get_config "port" "$port")" start_stop_daemon_args="$start_stop_daemon_args --env PGPORT=$port" @@ -124,7 +124,7 @@ stop() { && retry="$retry/SIGQUIT/$force_timeout" \ || force_timeout=0 - local seconds=$(( $nice_timeout + $rude_timeout + $force_timeout )) + local seconds="$(( $nice_timeout + $rude_timeout + $force_timeout ))" ebegin "Stopping PostgreSQL (this can take up to $seconds seconds)" -- cgit v1.2.3-70-g09d2