diff options
author | Renato Botelho <renato@netgate.com> | 2017-08-16 08:43:24 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2017-08-16 11:03:04 -0300 |
commit | 55b4462a528c084cc9a80e2839b49a6202cb9bf6 (patch) | |
tree | e3a6d83155327d1ebca8fea415b076c45b73ead2 | |
parent | 5e024279579ec76486f7cff713eecdb83611ed37 (diff) | |
download | pfsense-55b4462a528c084cc9a80e2839b49a6202cb9bf6.zip pfsense-55b4462a528c084cc9a80e2839b49a6202cb9bf6.tar.gz |
Add a function to be called every time convert_config() runs
-rw-r--r-- | src/etc/inc/config.lib.inc | 2 | ||||
-rw-r--r-- | src/etc/inc/upgrade_config.inc | 12 |
2 files changed, 14 insertions, 0 deletions
diff --git a/src/etc/inc/config.lib.inc b/src/etc/inc/config.lib.inc index f4fabb3..28631ee 100644 --- a/src/etc/inc/config.lib.inc +++ b/src/etc/inc/config.lib.inc @@ -468,6 +468,8 @@ function convert_config() { } } + additional_config_upgrade(); + $now = date("H:i:s"); log_error(sprintf(gettext("Ended Configuration upgrade at %s"), $now)); diff --git a/src/etc/inc/upgrade_config.inc b/src/etc/inc/upgrade_config.inc index c4a7871..2d215ff 100644 --- a/src/etc/inc/upgrade_config.inc +++ b/src/etc/inc/upgrade_config.inc @@ -5057,4 +5057,16 @@ function upgrade_157_to_158() { } } +/* + * Special function that is called independent of current config version. It's + * a workaround to have config_upgrade running on older versions after next + * config version was already taken by newer pfSense. + * + * XXX Change the way we handle config version to make it based on product + * version + */ +function additional_config_upgrade() { + global $config; +} + ?> |