From: Jonathan McDowell Date: Wed, 8 Jun 2016 14:07:35 +0000 (+0100) Subject: Fix use of absolute path in Debian postinst script X-Git-Tag: onak-0.5.0~23 X-Git-Url: http://the.earth.li/gitweb/?p=onak.git;a=commitdiff_plain;h=33e8f4970e2a6cfb98820e32b8a125061c2013d9 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. --- 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