summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReinhard Tartler <siretart@tauware.de>2009-04-01 10:45:15 +0200
committerReinhard Tartler <siretart@tauware.de>2009-04-01 10:45:15 +0200
commitc25acb51976cbdf89f4b19ff274087879d92974b (patch)
tree178860a2c3d03814c1f312d97fd27902b1046040
parenteb5b5035b2793fbb77526d7ca9abdfbf4a481374 (diff)
don't use absolute path to reference ucf. found with lintian
-rw-r--r--debian/boxbackup-client.postinst8
-rw-r--r--debian/boxbackup-server.postinst8
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