aboutsummaryrefslogtreecommitdiffstats
path: root/community/repmgr
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2018-03-30 17:35:48 +0200
committerJakub Jirutka <jakub@jirutka.cz>2018-03-30 17:36:39 +0200
commit02ea620e777fed6a85702b4f25463bcfe59203d7 (patch)
tree9a0db4d0fb5d278f969a8c1649c39125fb7dcb63 /community/repmgr
parentca96017c8dbce827bb937fd4a9b46b2653f7588f (diff)
downloadaports-02ea620e777fed6a85702b4f25463bcfe59203d7.tar.bz2
aports-02ea620e777fed6a85702b4f25463bcfe59203d7.tar.xz
community/repmgr: prefer standard variable command_user in runscript
Diffstat (limited to 'community/repmgr')
-rw-r--r--community/repmgr/APKBUILD2
-rw-r--r--community/repmgr/repmgrd.initd4
2 files changed, 3 insertions, 3 deletions
diff --git a/community/repmgr/APKBUILD b/community/repmgr/APKBUILD
index 93cd1a79b8..6a19cca46a 100644
--- a/community/repmgr/APKBUILD
+++ b/community/repmgr/APKBUILD
@@ -55,4 +55,4 @@ daemon() {
sha512sums="2ba2a63157a79ddc83e38569d566ae40e9f8016999270f88340f4a9c089b3b20a3041db59072aa895e2cad23d51394fd74ff4d80a3fc5da9d2861b7f335be7f9 repmgr-4.0.4.tar.gz
2457421c43db79f7bb294951ffff7e11a15f7752afebe8a3f888be3d3eccbda6ebec35d3eb001b2ee34585dc8932d6bb718dd98e3281a7204d7f0177ff1e221a repmgr.conf.patch
-4ea90fc4b07898235eb3fd441a9f9857d2309e8c124e8e274ddcb44750db7aa2f59f03ac284ecba9150c1e17a8ae173cc5f493abfdc2b66cac3444802379c6e0 repmgrd.initd"
+d35ff4918f5bbaae58d462b984bd8da09c7847b0ef99783eccf1429c3fb3aaabeedbe99fc17bf82629a3633cf6821108e840774569cb3894c859386d10439a26 repmgrd.initd"
diff --git a/community/repmgr/repmgrd.initd b/community/repmgr/repmgrd.initd
index 46ed23f750..ce2a4ae30b 100644
--- a/community/repmgr/repmgrd.initd
+++ b/community/repmgr/repmgrd.initd
@@ -2,9 +2,9 @@
command="/usr/bin/repmgrd"
command_background="yes"
-
+# "user" variable is here for backward compatibility only
+command_user="${command_user:-${user:-postgres}}"
pidfile="/run/$RC_SVCNAME.pid"
-start_stop_daemon_args="--user ${user:-postgres}"
depend() {
need postgresql