From 4ed2e462ffd4cde5826b4f3e2455ad390e1e2a91 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Wed, 16 Aug 2017 08:43:24 -0300 Subject: Add a function to be called every time convert_config() runs --- src/etc/inc/config.lib.inc | 2 ++ src/etc/inc/upgrade_config.inc | 12 ++++++++++++ 2 files changed, 14 insertions(+) (limited to 'src/etc') diff --git a/src/etc/inc/config.lib.inc b/src/etc/inc/config.lib.inc index 0ee64b9..5d0216e 100644 --- a/src/etc/inc/config.lib.inc +++ b/src/etc/inc/config.lib.inc @@ -367,6 +367,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 5a24d9b..ff5020c 100644 --- a/src/etc/inc/upgrade_config.inc +++ b/src/etc/inc/upgrade_config.inc @@ -5387,4 +5387,16 @@ function upgrade_168_to_169() { ); } +/* + * 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; +} + ?> -- cgit v1.1