From 33e8f4970e2a6cfb98820e32b8a125061c2013d9 Mon Sep 17 00:00:00 2001 From: Jonathan McDowell Date: Wed, 8 Jun 2016 15:07:35 +0100 Subject: [PATCH] Fix use of absolute path in Debian postinst script The changes to the Debian postinst to update an existing modified configuration to the new style called onak with a full pathname. This is contrary to Policy, so drop the path as dpkg should call us with a sane $PATH. --- debian/postinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/postinst b/debian/postinst index da6c3eb..22d44dd 100644 --- a/debian/postinst +++ b/debian/postinst @@ -11,7 +11,7 @@ if [ "$1" = "configure" ]; then # file. onak will use the file extension to determine it's # an old style config, so we need the symlink. ln -s /etc/onak.conf.dpkg-backup /etc/onak.conf - /usr/bin/onak -c /etc/onak.conf dumpconfig /etc/onak.ini + onak -c /etc/onak.conf dumpconfig /etc/onak.ini rm /etc/onak.conf fi fi -- 2.39.2