]> git.ipfire.org Git - people/ms/network.git/commitdiff
zone_destroy_now: Call proper functions to shut down the zone
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 27 Dec 2014 20:22:04 +0000 (20:22 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 27 Dec 2014 20:22:04 +0000 (20:22 +0000)
src/functions/functions.zone

index 22688a26490bff235fcc021df5738286c611e8b9..a7bf71f8cdcd17ae3bb6eb65d8e4e83edfcb8e7b 100644 (file)
@@ -309,7 +309,7 @@ function zone_destroy_now() {
        log INFO "Removing zone '${zone}' right now."
 
        # Force the zone down.
        log INFO "Removing zone '${zone}' right now."
 
        # Force the zone down.
-       zone_is_up "${zone}" && zone_set_down "${zone}"
+       zone_is_active "${zone}" && zone_stop "${zone}"
 
        # Disable zone.
        zone_disable "${zone}"
 
        # Disable zone.
        zone_disable "${zone}"