diff options
author | Reinhard Tartler <siretart@tauware.de> | 2009-04-01 10:45:15 +0200 |
---|---|---|
committer | Reinhard Tartler <siretart@tauware.de> | 2009-04-01 10:45:15 +0200 |
commit | c25acb51976cbdf89f4b19ff274087879d92974b (patch) | |
tree | 178860a2c3d03814c1f312d97fd27902b1046040 /debian | |
parent | eb5b5035b2793fbb77526d7ca9abdfbf4a481374 (diff) |
don't use absolute path to reference ucf. found with lintian
Diffstat (limited to 'debian')
-rw-r--r-- | debian/boxbackup-client.postinst | 8 | ||||
-rw-r--r-- | debian/boxbackup-server.postinst | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/debian/boxbackup-client.postinst b/debian/boxbackup-client.postinst index 249e1e9e..aa58f3b8 100644 --- a/debian/boxbackup-client.postinst +++ b/debian/boxbackup-client.postinst @@ -314,15 +314,15 @@ EOM fi __EOF - if [ -x /usr/bin/ucf ]; then - /usr/bin/ucf --three-way --debconf-ok $DEBCONFBB $BBCONF + if [ -x "`which ucf`" ]; then + ucf --three-way --debconf-ok $DEBCONFBB $BBCONF fi rm -f $DEBCONFBB chmod 644 $BBCONF || true chown root:root $BBCONF || true - if [ -x /usr/bin/ucf ]; then - /usr/bin/ucf --three-way --debconf-ok $DEBCONFNOTIFY $NOTIFYSCRIPT + if [ -x "`which ucf`" ]; then + ucf --three-way --debconf-ok $DEBCONFNOTIFY $NOTIFYSCRIPT fi rm -f $DEBCONFNOTIFY chmod 755 $NOTIFYSCRIPT || true diff --git a/debian/boxbackup-server.postinst b/debian/boxbackup-server.postinst index 4045daca..87d88333 100644 --- a/debian/boxbackup-server.postinst +++ b/debian/boxbackup-server.postinst @@ -178,15 +178,15 @@ EOF db_stop - if [ -x /usr/bin/ucf ]; then - /usr/bin/ucf --three-way $DEBCONFRAID $RAIDCONF >&2 </dev/tty + if [ -x "`which ucf`" ]; then + ucf --three-way $DEBCONFRAID $RAIDCONF >&2 </dev/tty fi rm -f $DEBCONFRAID chmod 644 $RAIDCONF || true chown root:root $RAIDCONF || true - if [ -x /usr/bin/ucf ]; then - /usr/bin/ucf --three-way $DEBCONFBB $BBCONF >&2 </dev/tty + if [ -x "`which ucf`" ]; then + ucf --three-way $DEBCONFBB $BBCONF >&2 </dev/tty fi rm -f $DEBCONFBB chmod 644 $BBCONF || true |