diff options
author | Steve Beaver <sbeaver@netgate.com> | 2017-08-04 15:32:48 -0400 |
---|---|---|
committer | Steve Beaver <sbeaver@netgate.com> | 2017-08-04 15:32:48 -0400 |
commit | 43b3e9c3aea1306b20bc58eb0950bd9a584bd974 (patch) | |
tree | c73e94868a41ba5a3ca68f9d86b86dab74b57c43 | |
parent | f48b35737b6453c7a356230fd062447ba8a853f5 (diff) | |
download | pfsense-43b3e9c3aea1306b20bc58eb0950bd9a584bd974.zip pfsense-43b3e9c3aea1306b20bc58eb0950bd9a584bd974.tar.gz |
Force the support widget to show when a user upgrades to this version
-rw-r--r-- | src/etc/inc/globals.inc | 2 | ||||
-rw-r--r-- | src/etc/inc/upgrade_config.inc | 14 |
2 files changed, 13 insertions, 3 deletions
diff --git a/src/etc/inc/globals.inc b/src/etc/inc/globals.inc index 627bc1d..4ae1cd5 100644 --- a/src/etc/inc/globals.inc +++ b/src/etc/inc/globals.inc @@ -71,7 +71,7 @@ $g = array( "disablecrashreporter" => false, "crashreporterurl" => "https://crashreporter.pfsense.org/crash_reporter.php", "debug" => false, - "latest_config" => "16.6", + "latest_config" => "16.7", "minimum_ram_warning" => "101", "minimum_ram_warning_text" => "128 MB", "wan_interface_name" => "wan", diff --git a/src/etc/inc/upgrade_config.inc b/src/etc/inc/upgrade_config.inc index 74082dd..eebb786 100644 --- a/src/etc/inc/upgrade_config.inc +++ b/src/etc/inc/upgrade_config.inc @@ -4746,7 +4746,7 @@ function upgrade_147_to_148() { } // if there was a space in a group name, there may be multiple - // groups with the same name in the group file. To prevent pw + // groups with the same name in the group file. To prevent pw // from getting into a neverending loop, delete all user-defined // groups here. local_sync_accounts will run shortly after this // and add them back. redmine #6012 @@ -5091,7 +5091,7 @@ function upgrade_160_to_161() { } else { foreach ($rrdrestore as $xml_file) { $rrd_file = '/' . substr($xml_file, 0, -4) . '.rrd'; - unlink_if_exists("{$rrd_file}"); + unlink_if_exists("{$rrd_file}"); file_put_contents("{$g['tmp_path']}/rrd_restore", $xml_file); $_gb = exec("LANG=C /usr/bin/tar -xf {$g['cf_conf_path']}/rrd.tgz -C / -T {$g['tmp_path']}/rrd_restore"); @@ -5323,4 +5323,14 @@ function upgrade_165_to_166() { } } +/* Force the Netgate Services and Support widget to be active on upgrade. */ +function upgrade_166_to_167() { + global $config; + + $widget_sequence = $config['widgets']['sequence']; + + if (strpos($widget_sequence, 'netgate_services_and_support') === false) { + $widget_sequence .= ',netgate_services_and_support:col2:open:0'; + } +} ?> |