]> git.ipfire.org Git - people/ms/network.git/blobdiff - src/functions/functions.zone
zone: fix zone_new
[people/ms/network.git] / src / functions / functions.zone
index 11a8dc207529c001958389186f5a1123818502f1..91ce62971782dcae1a32815dac64efa9f9e70780 100644 (file)
@@ -243,7 +243,7 @@ zone_new() {
 
        # Maybe the zone new hook did not exit correctly.
        # If this is the case we remove the created zone immediately.
-       if [ "${ret}" = "${EXIT_ERROR}" ]; then
+       if [ "${ret}" != "${EXIT_OK}" ]; then
                zone_destroy_now "${zone}"
                return ${EXIT_ERROR}
        fi