real fix
authorHeiko Schlittermann <hs@schlittermann.de>
Thu, 15 Oct 2015 15:08:49 +0200
changeset 43 1e14b22f74b0
parent 42 d113f0368598
child 44 a74027ea26d4
real fix
debian/postinst
--- a/debian/postinst	Thu Oct 15 15:01:09 2015 +0200
+++ b/debian/postinst	Thu Oct 15 15:08:49 2015 +0200
@@ -22,13 +22,14 @@
     configure)
 	old=/etc/bind/zones.override
 	new=/etc/check_dns-delegation/override
-	test -f $new && break
-	test -f $old || {
-	    touch -f $new
-	    break
-	}
-	chmod a+r $old
-	mv $old $new
+	if test -f $new; then
+	    :
+	elif test -f $old; then
+	    mv $old $new
+	else
+	    touch $new
+	    chmod a+r $new
+	fi
     ;;
 
     abort-upgrade|abort-remove|abort-deconfigure)