debian/postinst
changeset 43 1e14b22f74b0
parent 40 8f56f9838707
--- 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)