summaryrefslogtreecommitdiffstats
path: root/etc/inc/rrd.inc
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2014-11-29 18:05:46 +0545
committerPhil Davis <phil.davis@inf.org>2014-11-29 18:05:46 +0545
commit9c97e4b88cbb7cb0b7fa7248615b8e8350be993b (patch)
tree83fedc6374a09401ef9c88e80be44fef895ef44b /etc/inc/rrd.inc
parent345145e20b934d6d4f22801e164f85435e63f2ab (diff)
downloadpfsense-9c97e4b88cbb7cb0b7fa7248615b8e8350be993b.zip
pfsense-9c97e4b88cbb7cb0b7fa7248615b8e8350be993b.tar.gz
Correctly delete xml file after restore and conversion to rrd
When doing "Generating RRD graphs" at bootup, the data is restored from /cf/conf/rrd.tgz into xml format files in /var/db/rrd. Those xml files are then convert to rrd files. After that, the xml files should be deleted - but the xml file path was not quite right, so they were not being deleted. This fixes it.
Diffstat (limited to 'etc/inc/rrd.inc')
-rw-r--r--etc/inc/rrd.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/rrd.inc b/etc/inc/rrd.inc
index 34366e1..86c737f 100644
--- a/etc/inc/rrd.inc
+++ b/etc/inc/rrd.inc
@@ -80,7 +80,7 @@ function restore_rrd() {
continue;
}
unset($output);
- @unlink($xml_file);
+ @unlink("/{$xml_file}");
}
unset($rrdrestore);
@unlink("{$g['tmp_path']}/rrd_restore");
OpenPOWER on IntegriCloud