From: Julian Ospald Date: Tue, 15 Sep 2015 15:12:13 +0000 (+0200) Subject: net-irc/znc: improve quoting in init file X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a1caf33ff9b18692b73acb925371658a57794ad0;p=gentoo.git net-irc/znc: improve quoting in init file --- 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 $? }