debian/postinst
changeset 40 8f56f9838707
parent 35 9a6d53670b1e
child 43 1e14b22f74b0
--- a/debian/postinst	Thu Jan 22 15:20:32 2015 +0100
+++ b/debian/postinst	Thu Oct 15 15:00:46 2015 +0200
@@ -23,7 +23,10 @@
 	old=/etc/bind/zones.override
 	new=/etc/check_dns-delegation/override
 	test -f $new && break
-	touch $old
+	test -f $old || {
+	    touch -f $new
+	    break
+	}
 	chmod a+r $old
 	mv $old $new
     ;;