]> git.ipfire.org Git - network.git/commitdiff
config: Don't change the HOOK variable when sourcing a configuration file.
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 23 Jun 2012 15:54:32 +0000 (15:54 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 23 Jun 2012 15:54:32 +0000 (15:54 +0000)
functions.zone

index 63cc37dfc5ad163f3362a114a13bb81b3bbd9f4e..6c1874e3b0d9cfda5374566db00c5a8f97daef18 100644 (file)
@@ -694,7 +694,13 @@ function zone_config_read() {
 
        assert isset zone
 
+       # Save the HOOK variable.
+       local hook="${HOOK}"
+
        config_read $(zone_file ${zone})
+
+       # Restore hook.
+       HOOK="${hook}"
 }
 
 function zone_config_write() {