fix postinst
authorHeiko Schlittermann <hs@schlittermann.de>
Thu, 15 Oct 2015 15:00:46 +0200
changeset 40 8f56f9838707
parent 39 fdb109617556
child 41 69e954711ab7
fix postinst
debian/postinst
--- 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
     ;;