Revision 2344bed4
Added by Renato Botelho almost 10 years ago
src/etc/inc/rrd.inc | ||
---|---|---|
55 | 55 |
|
56 | 56 |
$rrdrestore = ""; |
57 | 57 |
$rrdreturn = ""; |
58 |
if (file_exists("{$g['cf_conf_path']}/rrd.tgz") && (isset($config['system']['use_mfs_tmpvar']) || $g['platform'] != "pfSense")) {
|
|
58 |
if (file_exists("{$g['cf_conf_path']}/rrd.tgz") && (isset($config['system']['use_mfs_tmpvar']) || $g['platform'] != $g['product_name'])) {
|
|
59 | 59 |
foreach (glob("{$rrddbpath}/*.xml") as $xml_file) { |
60 | 60 |
@unlink($xml_file); |
61 | 61 |
} |
... | ... | |
87 | 87 |
unset($rrdrestore); |
88 | 88 |
@unlink("{$g['tmp_path']}/rrd_restore"); |
89 | 89 |
/* 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. */ |
90 |
if (($g['platform'] == "pfSense") && !isset($config['system']['use_mfs_tmpvar'])) {
|
|
90 |
if (($g['platform'] == $g['product_name']) && !isset($config['system']['use_mfs_tmpvar'])) {
|
|
91 | 91 |
unlink_if_exists("{$g['cf_conf_path']}/rrd.tgz"); |
92 | 92 |
} |
93 | 93 |
return true; |
Also available in: Unified diff
Use product_name global variable in more places