]> the.earth.li Git - onak.git/commitdiff
Fix use of absolute path in Debian postinst script
authorJonathan McDowell <noodles@earth.li>
Wed, 8 Jun 2016 14:07:35 +0000 (15:07 +0100)
committerJonathan McDowell <noodles@earth.li>
Wed, 8 Jun 2016 14:07:35 +0000 (15:07 +0100)
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

index da6c3eb29a1e4809d008ddcde9bcc4722de7a0a8..22d44dd80ac2a1aed4f7318c4970df97a8c97f25 100644 (file)
@@ -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