summaryrefslogtreecommitdiff
path: root/user/postgresql/postgresql.initd
diff options
context:
space:
mode:
authorA. Wilcox <awilcox@wilcox-tech.com>2019-07-24 05:54:10 +0000
committerA. Wilcox <awilcox@wilcox-tech.com>2019-07-24 05:54:10 +0000
commitbed7a51ed2c79f05cb1cf4708d4e128cfb23133a (patch)
treeec42f502556c869d54bc511d1c8f3248db80d566 /user/postgresql/postgresql.initd
parent6574a30b9b98a3464ff4cebe381b3732a8dabfc3 (diff)
parentd88486a76bb0d6bafb97fc9f0b5ae909f61b18e8 (diff)
downloadpackages-bed7a51ed2c79f05cb1cf4708d4e128cfb23133a.tar.gz
packages-bed7a51ed2c79f05cb1cf4708d4e128cfb23133a.tar.bz2
packages-bed7a51ed2c79f05cb1cf4708d4e128cfb23133a.tar.xz
packages-bed7a51ed2c79f05cb1cf4708d4e128cfb23133a.zip
Merge branch 'openrc-bashisms' into 'master'
Cleanup OpenRC init.d scripts, and more See merge request adelie/packages!295
Diffstat (limited to 'user/postgresql/postgresql.initd')
-rw-r--r--user/postgresql/postgresql.initd6
1 files changed, 3 insertions, 3 deletions
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)"