diff options
author | Renato Botelho <renato@netgate.com> | 2016-10-12 15:52:41 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2016-10-12 16:23:14 -0300 |
commit | 0c2dffb0278183fd15ed6c66c809615ce8f01418 (patch) | |
tree | a286f085fe02d5d4c0470f0842a81f6b30b5f1a3 /src/etc/inc/globals.inc | |
parent | b55c6b825d59f0bfa4524c5bf002b76338ff745c (diff) | |
download | pfsense-0c2dffb0278183fd15ed6c66c809615ce8f01418.zip pfsense-0c2dffb0278183fd15ed6c66c809615ce8f01418.tar.gz |
Define a single value for 'default_config_backup_count'
Diffstat (limited to 'src/etc/inc/globals.inc')
-rw-r--r-- | src/etc/inc/globals.inc | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/etc/inc/globals.inc b/src/etc/inc/globals.inc index 86664d6..4ecca7c 100644 --- a/src/etc/inc/globals.inc +++ b/src/etc/inc/globals.inc @@ -77,7 +77,8 @@ $g = array( "help_base_url" => "/help.php", "pkg_prefix" => "pfSense-pkg-", "default_timezone" => "Etc/UTC", - "language" => "en_US" + "language" => "en_US", + "default_config_backup_count" => 30 ); /* IP TOS flags */ @@ -99,17 +100,10 @@ if (is_numeric($g["product_version_patch"]) && $g["product_version_patch"] != "0 if (file_exists("/etc/platform")) { $g['platform'] = trim(file_get_contents("/etc/platform")); - if ($g['platform'] == "nanobsd") { - $g['default_config_backup_count'] = 5; - } else { - $g['default_config_backup_count'] = 30; - } } else { // shouldn't happen but "just in case" no platform were detected $g['platform'] = 'undetected'; - $g['default_config_backup_count'] = 30; -} - +} if (file_exists("{$g['etc_path']}/default-config-flavor")) { $flavor_array = file("{$g['etc_path']}/default-config-flavor"); |