r1043 - in zope-debhelper/trunk (2 files)
Fabio Tranchitella
kobold at alioth.debian.org
Thu Nov 29 13:01:45 UTC 2007
Date: Thursday, November 29, 2007 @ 13:01:44
Author: kobold
Revision: 1043
* autoscripts/postinst-dzinstance: break if something went wrong while
creating the instance.
Modified:
zope-debhelper/trunk/autoscripts/postinst-dzinstance
zope-debhelper/trunk/debian/changelog
Modified: zope-debhelper/trunk/autoscripts/postinst-dzinstance
===================================================================
--- zope-debhelper/trunk/autoscripts/postinst-dzinstance 2007-11-29 12:58:59 UTC (rev 1042)
+++ zope-debhelper/trunk/autoscripts/postinst-dzinstance 2007-11-29 13:01:44 UTC (rev 1043)
@@ -18,7 +18,7 @@
configure)
if dzhandle -z $ZVER show-instance $INSTANCE >/dev/null 2>&1; then
# instance already exists
- echo "Zope$ZVER instance '$INSTANCE' already exists".
+ echo "Zope$ZVER instance '$INSTANCE' already exists."
add_products
if [ "$DATABASE" = "ZEO" ]; then
if ! dzhandle -z $ZVER zeoctl $INSTANCE start; then
@@ -93,6 +93,8 @@
rm -rf "/var/log/zope$ZVER/$INSTANCE"
rm -rf "/etc/zope$ZVER/$INSTANCE"
fi
+ # something wrong happened, exit with a status error
+ exit 201
fi
fi
;;
Modified: zope-debhelper/trunk/debian/changelog
===================================================================
--- zope-debhelper/trunk/debian/changelog 2007-11-29 12:58:59 UTC (rev 1042)
+++ zope-debhelper/trunk/debian/changelog 2007-11-29 13:01:44 UTC (rev 1043)
@@ -1,9 +1,11 @@
zope-debhelper (0.3.11) unstable; urgency=low
+ * autoscripts/postinst-dzinstance: break if something went wrong while
+ creating the instance.
* dh_installzopeinstance: fixed a bug, the default user for the instance
should be zope:zope. (Closes: #453180)
- -- Fabio Tranchitella <kobold at debian.org> Thu, 29 Nov 2007 13:55:57 +0100
+ -- Fabio Tranchitella <kobold at debian.org> Thu, 29 Nov 2007 14:00:00 +0100
zope-debhelper (0.3.10) unstable; urgency=high
More information about the pkg-zope-commits
mailing list