Browse Source

TT#182450 debian/ngcp-rtpengine-*.postinst: fix shellcheck issues

Fix `SC2043 (warning): This loop will only ever run once. Bad quoting or missing glob/expansion?`

Fix-up for git rev de8b3d59c1,
AKA Change-Id If75b6c1b675c8abf0bb33ae58b41e036276f8640

Change-Id: I46f58da69a683ed2fa67c86f9928fbfc8372482f
pull/1525/head
Michael Prokop 3 years ago
parent
commit
64650e6577
2 changed files with 10 additions and 12 deletions
  1. +5
    -6
      debian/ngcp-rtpengine-daemon.postinst
  2. +5
    -6
      debian/ngcp-rtpengine-recording-daemon.postinst

+ 5
- 6
debian/ngcp-rtpengine-daemon.postinst View File

@ -37,12 +37,11 @@ if [ "$1" = configure ]; then
--no-create-home --disabled-password \
--group --quiet rtpengine || true
for DIR in /var/spool/rtpengine; do
if ! dpkg-statoverride --list "$DIR" > /dev/null 2>&1; then
chown rtpengine:rtpengine "$DIR"
chmod 0770 "$DIR"
fi
done
rtpdir='/var/spool/rtpengine'
if ! dpkg-statoverride --list "$rtpdir" > /dev/null 2>&1; then
chown rtpengine:rtpengine "$rtpdir"
chmod 0770 "$rtpdir"
fi
fi
#DEBHELPER#


+ 5
- 6
debian/ngcp-rtpengine-recording-daemon.postinst View File

@ -3,12 +3,11 @@
set -e
if [ "$1" = configure ]; then
for DIR in /var/lib/rtpengine-recording; do
if ! dpkg-statoverride --list "$DIR" > /dev/null 2>&1; then
chown rtpengine:rtpengine "$DIR"
chmod 0770 "$DIR"
fi
done
rtpdir='/var/lib/rtpengine-recording'
if ! dpkg-statoverride --list "$rtpdir" > /dev/null 2>&1; then
chown rtpengine:rtpengine "$rtpdir"
chmod 0770 "$rtpdir"
fi
fi
#DEBHELPER#


Loading…
Cancel
Save