From: Michael Tremer Date: Sat, 23 Jun 2012 15:54:32 +0000 (+0000) Subject: config: Don't change the HOOK variable when sourcing a configuration file. X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bfd6c282af62d5d3d3df2c9dfc6a93ad375e1deb;p=people%2Fstevee%2Fnetwork.git config: Don't change the HOOK variable when sourcing a configuration file. --- diff --git a/functions.zone b/functions.zone index 63cc37df..6c1874e3 100644 --- a/functions.zone +++ b/functions.zone @@ -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() {