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 514ef972c3
commit 9b3226f42e

@ -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."

@ -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

@ -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

@ -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

@ -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

@ -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