From 6515067836667e3f757e52175ea1cef1850010ce Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Tue, 13 Dec 2022 09:36:16 +0100 Subject: [PATCH] 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 --- debian/ngcp-rtpengine-daemon.init | 2 +- debian/ngcp-rtpengine-recording-daemon.init | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/ngcp-rtpengine-daemon.init b/debian/ngcp-rtpengine-daemon.init index 4d5e95dad..c17f51833 100755 --- a/debian/ngcp-rtpengine-daemon.init +++ b/debian/ngcp-rtpengine-daemon.init @@ -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 diff --git a/debian/ngcp-rtpengine-recording-daemon.init b/debian/ngcp-rtpengine-recording-daemon.init index 6d219302a..f18f4d657 100755 --- a/debian/ngcp-rtpengine-recording-daemon.init +++ b/debian/ngcp-rtpengine-recording-daemon.init @@ -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"