Browse Source

MT#56190 Adjust init scripts for shellcheck v0.9.0

Fix SC2086 issues ("Double quote to prevent globbing and word splitting", see
https://www.shellcheck.net/wiki/SC2086) in debian/ngcp-rtpengine-daemon.init
and debian/ngcp-rtpengine-recording-daemon.init, as reported by new shellcheck
version 0.9.0 (see https://github.com/koalaman/shellcheck/blob/master/CHANGELOG.md).

Change-Id: I97fe61d70dfddc420b8d0a7a9299a63b7a3061d7
pull/1581/head
Michael Prokop 3 years ago
parent
commit
6515067836
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      debian/ngcp-rtpengine-daemon.init
  2. +1
    -1
      debian/ngcp-rtpengine-recording-daemon.init

+ 1
- 1
debian/ngcp-rtpengine-daemon.init View File

@ -92,7 +92,7 @@ case "$1" in
stop)
log_daemon_msg "Stopping $DESC" "$NAME"
RC=0
start-stop-daemon --oknodo --stop --quiet --pidfile $PIDFILE \
start-stop-daemon --oknodo --stop --quiet --pidfile "$PIDFILE" \
--retry 5 --exec "$DAEMON" || RC=$?
if [ "$RC" -eq 0 ]; then
ngcp-rtpengine-iptables-setup stop || true


+ 1
- 1
debian/ngcp-rtpengine-recording-daemon.init View File

@ -90,7 +90,7 @@ case "$1" in
stop)
log_daemon_msg "Stopping $DESC" "$NAME"
RC=0
start-stop-daemon --oknodo --stop --quiet --pidfile $PIDFILE \
start-stop-daemon --oknodo --stop --quiet --pidfile "$PIDFILE" \
--retry 5 --exec "$DAEMON" || RC=$?
rm -f "$PIDFILE"
log_end_msg "$RC"


Loading…
Cancel
Save