summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Radici <antonio@dyne.org>2009-09-09 20:13:36 +0100
committerAntonio Radici <antonio@dyne.org>2009-09-09 20:20:58 +0100
commit12879ec0c89685a784f39d75e245af484ed1c0c1 (patch)
tree7265fe5cf97cc2f19fdae1bc9587298ae9232cb4
parent4939f706b79d2fff4f0fc01493d042ff4e6c41ae (diff)
checking if the upgrade utility exists in preinst
-rw-r--r--debian/preinst2
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/preinst b/debian/preinst
index ac487bf..4541e0e 100644
--- a/debian/preinst
+++ b/debian/preinst
@@ -22,7 +22,7 @@ case "$1" in
dpkg --compare-versions "$OLDVERSION" lt "1.32-1"
if [ "$?" -eq "0" ]; then
set -e
- if [ -d $DBDIR ]; then
+ if [ -d $DBDIR -a -f /usr/bin/db4.7_upgrade ]; then
if [ -f "$DBDIR/postgrey.db" ]; then
db4.7_upgrade -h $DBDIR postgrey.db
fi