Project

General

Profile

« Previous | Next » 

Revision 05b7eef9

Added by Chris Buechler about 10 years ago

Only restore rrd.tgz where platform is appropriate, or RAM disk being
used, otherwise you're restoring a probably old backup file. Ticket #4531

View differences:

etc/inc/rrd.inc
55 55

  
56 56
	$rrdrestore = "";
57 57
	$rrdreturn = "";
58
	if (file_exists("{$g['cf_conf_path']}/rrd.tgz")) {
58
	if (file_exists("{$g['cf_conf_path']}/rrd.tgz") && (isset($config['system']['use_mfs_tmpvar']) || $g['platform'] != "pfSense")) {
59 59
		foreach (glob("{$rrddbpath}/*.xml") as $xml_file) {
60 60
			@unlink($xml_file);
61 61
		}
......
980 980
	killbypid("{$g['varrun_path']}/updaterrd.sh.pid");
981 981
}
982 982

  
983
?>
983
?>

Also available in: Unified diff