[Pkg-samba-maint] Bug#451269: samba's package postinst script shouldn't return an error if samba daemon can't be started

Mathias Gug mathiaz at ubuntu.com
Wed Nov 14 17:44:50 UTC 2007


Package: samba 
Version: 3.0.26a-1
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu ubuntu-patch hardy


If the samba configuration is broken, the postinst script fails. I've attached
a patch that add true as the error-handler when restarting samba.

First reported in Ubuntu:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/85194

-------------- next part --------------
diff -pruN 3.0.26a-1/debian/rules 3.0.26a-1ubuntu2/debian/rules
--- 3.0.26a-1/debian/rules	2007-10-04 09:08:53.000000000 +0100
+++ 3.0.26a-1ubuntu2/debian/rules	2007-10-04 09:08:11.000000000 +0100
@@ -205,7 +206,7 @@ binary-arch: build install
 	dh_installexamples
 	dh_installlogrotate
 	dh_installlogcheck
-	DH_OPTIONS= dh_installinit -psamba -- "defaults 20 19"
+	DH_OPTIONS= dh_installinit -psamba --error-handler=true -- "defaults 20 19"
 	DH_OPTIONS= dh_installinit -pwinbind
 	dh_installcron 
 	for pkg in samba smbfs winbind; do \


More information about the Pkg-samba-maint mailing list