community/repmgr: prefer standard variable command_user in runscript

This commit is contained in:
Jakub Jirutka 2018-03-30 17:35:48 +02:00
parent ca96017c8d
commit 02ea620e77
2 changed files with 3 additions and 3 deletions

View File

@ -55,4 +55,4 @@ daemon() {
sha512sums="2ba2a63157a79ddc83e38569d566ae40e9f8016999270f88340f4a9c089b3b20a3041db59072aa895e2cad23d51394fd74ff4d80a3fc5da9d2861b7f335be7f9 repmgr-4.0.4.tar.gz
2457421c43db79f7bb294951ffff7e11a15f7752afebe8a3f888be3d3eccbda6ebec35d3eb001b2ee34585dc8932d6bb718dd98e3281a7204d7f0177ff1e221a repmgr.conf.patch
4ea90fc4b07898235eb3fd441a9f9857d2309e8c124e8e274ddcb44750db7aa2f59f03ac284ecba9150c1e17a8ae173cc5f493abfdc2b66cac3444802379c6e0 repmgrd.initd"
d35ff4918f5bbaae58d462b984bd8da09c7847b0ef99783eccf1429c3fb3aaabeedbe99fc17bf82629a3633cf6821108e840774569cb3894c859386d10439a26 repmgrd.initd"

View File

@ -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