diff options
author | Renato Botelho <renato@netgate.com> | 2016-10-12 16:29:07 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2016-10-12 16:29:49 -0300 |
commit | dc61252ae4dbfcfe5d75f40c86b5cf955242b788 (patch) | |
tree | 8db639550cb248216a10b6b9d5ec10ab6384c32f /src/etc/inc/rrd.inc | |
parent | 9ed7f8f635c6b8d8074c2abe754aadb965aa47c4 (diff) | |
download | pfsense-dc61252ae4dbfcfe5d75f40c86b5cf955242b788.zip pfsense-dc61252ae4dbfcfe5d75f40c86b5cf955242b788.tar.gz |
Deprecate nanobsd platform and remove all conditionals that uses it
Diffstat (limited to 'src/etc/inc/rrd.inc')
-rw-r--r-- | src/etc/inc/rrd.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/etc/inc/rrd.inc b/src/etc/inc/rrd.inc index 2539af3..183f84a 100644 --- a/src/etc/inc/rrd.inc +++ b/src/etc/inc/rrd.inc @@ -42,7 +42,7 @@ function restore_rrd() { $rrdrestore = ""; $rrdreturn = ""; - if (file_exists("{$g['cf_conf_path']}/rrd.tgz") && (isset($config['system']['use_mfs_tmpvar']) || $g['platform'] != $g['product_name'])) { + if (file_exists("{$g['cf_conf_path']}/rrd.tgz") && isset($config['system']['use_mfs_tmpvar'])) { foreach (glob("{$rrddbpath}/*.xml") as $xml_file) { @unlink($xml_file); } @@ -74,7 +74,7 @@ function restore_rrd() { unset($rrdrestore); @unlink("{$g['tmp_path']}/rrd_restore"); /* If this backup is still there on a full install, but we aren't going to use ram disks, remove the archive since this is a transition. */ - if (($g['platform'] == $g['product_name']) && !isset($config['system']['use_mfs_tmpvar'])) { + if (!isset($config['system']['use_mfs_tmpvar'])) { unlink_if_exists("{$g['cf_conf_path']}/rrd.tgz"); } return true; |