summaryrefslogtreecommitdiffstats
path: root/debian/open-infrastructure-container-tools.postinst
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-04-11 14:36:05 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-04-11 14:40:12 +0000
commit2d44f002c25cff5905099a3c4027b0c3e3ad4a2e (patch)
tree74279e25ec555e1eaef85fd11cd99070809c9f98 /debian/open-infrastructure-container-tools.postinst
parentImproving variable usage to shorten strings in rules. (diff)
downloadopen-infrastructure-compute-tools-2d44f002c25cff5905099a3c4027b0c3e3ad4a2e.tar.xz
open-infrastructure-compute-tools-2d44f002c25cff5905099a3c4027b0c3e3ad4a2e.zip
Using which to check for commands in maintainer script to avoid lintian 'command-with-path'-warning.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/open-infrastructure-container-tools.postinst')
-rwxr-xr-xdebian/open-infrastructure-container-tools.postinst2
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/open-infrastructure-container-tools.postinst b/debian/open-infrastructure-container-tools.postinst
index 1cac16a..44d0582 100755
--- a/debian/open-infrastructure-container-tools.postinst
+++ b/debian/open-infrastructure-container-tools.postinst
@@ -108,7 +108,7 @@ EOF
mv -f "${CONFFILE}.tmp" "${CONFFILE}"
- if [ -x /sbin/sysctl ]
+ if [ -x "$(which sysctl)" ]
then
sysctl -q -p /etc/sysctl.d/zz-container.conf
fi