Browse Source

TT#49106 Do not use absolute paths for commands

This makes it difficult to interpose local scripts to override local
behavior, for testing purposes for example.

Warned-by: lintian
Change-Id: I5e1feda02a26f482728f5404496c5870ec93d8aa
changes/68/25868/2
Guillem Jover 7 years ago
parent
commit
9b3226f42e
6 changed files with 10 additions and 10 deletions
  1. +1
    -1
      debian/ngcp-rtpengine-daemon.init
  2. +2
    -2
      debian/ngcp-rtpengine-daemon.postinst
  3. +2
    -2
      debian/ngcp-rtpengine-iptables-setup
  4. +2
    -2
      debian/ngcp-rtpengine-kernel-dkms.postinst
  5. +2
    -2
      debian/ngcp-rtpengine-kernel-dkms.prerm
  6. +1
    -1
      debian/ngcp-rtpengine-recording-daemon.init

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

@ -136,7 +136,7 @@ fi
case "$1" in
start)
set +e
if [ -x "/usr/sbin/ngcp-check-active" ]; then
if [ -x "$(which ngcp-check-active)" ]; then
case "$(ngcp-check-active -v)" in
active|transition)
log_action_msg "Active node or transition."


+ 2
- 2
debian/ngcp-rtpengine-daemon.postinst View File

@ -5,8 +5,8 @@ set -e
default=/etc/default/ngcp-rtpengine-daemon
modname=xt_RTPENGINE
if [ -x /usr/sbin/ngcp-virt-identify ]; then
if /usr/sbin/ngcp-virt-identify --type container; then
if [ -x "$(which ngcp-virt-identify)" ]; then
if ngcp-virt-identify --type container; then
VIRT="yes"
fi
fi


+ 2
- 2
debian/ngcp-rtpengine-iptables-setup View File

@ -31,8 +31,8 @@ fi
###
if [ -x /usr/sbin/ngcp-virt-identify ]; then
if /usr/sbin/ngcp-virt-identify --type container; then
if [ -x "$(which ngcp-virt-identify)" ]; then
if ngcp-virt-identify --type container; then
VIRT="yes"
fi
fi


+ 2
- 2
debian/ngcp-rtpengine-kernel-dkms.postinst View File

@ -9,8 +9,8 @@ version=$(dpkg-query -W -f="\${Version}" "$package" \
|rev|cut -d- -f2-|rev|cut -d':' -f2|tr -d "\n")
if [ -x /usr/sbin/ngcp-virt-identify ]; then
if /usr/sbin/ngcp-virt-identify --type container; then
if [ -x "$(which ngcp-virt-identify)" ]; then
if ngcp-virt-identify --type container; then
VIRT="yes"
fi
fi


+ 2
- 2
debian/ngcp-rtpengine-kernel-dkms.prerm View File

@ -8,8 +8,8 @@ name=ngcp-rtpengine
version=$(dpkg-query -W -f="\${Version}" "$package" \
|rev|cut -d- -f2-|rev|cut -d':' -f2|tr -d "\n")
if [ -x /usr/sbin/ngcp-virt-identify ]; then
if /usr/sbin/ngcp-virt-identify --type container; then
if [ -x "$(which ngcp-virt-identify)" ]; then
if ngcp-virt-identify --type container; then
VIRT="yes"
fi
fi


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

@ -67,7 +67,7 @@ fi
case "$1" in
start)
set +e
if [ -x "/usr/sbin/ngcp-check-active" ]; then
if [ -x "$(which ngcp-check-active)" ]; then
case "$(ngcp-check-active -v)" in
active|transition)
log_action_msg "Active node or transition."


Loading…
Cancel
Save