diff options
author | Julian Ospald <hasufell@gentoo.org> | 2015-09-15 17:12:13 +0200 |
---|---|---|
committer | Julian Ospald <hasufell@gentoo.org> | 2015-09-15 17:40:15 +0200 |
commit | a1caf33ff9b18692b73acb925371658a57794ad0 (patch) | |
tree | 15082cfdec2f06e095c9fbece00d1198637c1b7e /net-irc/znc | |
parent | Merge branch 'gentoo-bug-542168' of git://github.com/Whissi/gentoo (diff) | |
download | gentoo-a1caf33ff9b18692b73acb925371658a57794ad0.tar.gz gentoo-a1caf33ff9b18692b73acb925371658a57794ad0.tar.bz2 gentoo-a1caf33ff9b18692b73acb925371658a57794ad0.zip |
net-irc/znc: improve quoting in init file
Diffstat (limited to 'net-irc/znc')
-rw-r--r-- | net-irc/znc/files/znc.initd-r1 | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/net-irc/znc/files/znc.initd-r1 b/net-irc/znc/files/znc.initd-r1 index 903a4febd3c9..a6ef740969c1 100644 --- a/net-irc/znc/files/znc.initd-r1 +++ b/net-irc/znc/files/znc.initd-r1 @@ -6,7 +6,7 @@ extra_commands="config" extra_started_commands="reload save" command="/usr/bin/znc" -command_args="--datadir ${ZNC_DATADIR}" +command_args="--datadir \"${ZNC_DATADIR}\"" pidfile="${ZNC_PIDFILE:-/run/znc/znc.pid}" user=${ZNC_USER:-znc} group=${ZNC_GROUP:-znc} @@ -20,21 +20,21 @@ depend() { } start_pre() { - checkpath -d -m 0770 -o ${user}:${group} $(dirname ${pidfile}) + checkpath -d -m 0770 -o ${user}:${group} "$(dirname ${pidfile})" } stop_post() { - rm -f ${pidfile} + rm -f "${pidfile}" } reload() { ebegin "Reloading ZNC Configuration File from Disk" - start-stop-daemon --signal SIGHUP --pidfile ${pidfile} + start-stop-daemon --signal SIGHUP --pidfile "${pidfile}" eend $? } save() { ebegin "Saving ZNC Configuration File to Disk" - start-stop-daemon --signal SIGUSR1 --pidfile ${pidfile} + start-stop-daemon --signal SIGUSR1 --pidfile "${pidfile}" eend $? } |