summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorXon <tazipper1@hotmail.com>2013-09-16 01:45:57 +0800
committerjim-p <jimp@pfsense.org>2013-09-19 09:45:53 -0400
commitbaeb0599cf0f2a6a5caaf0af51f6d5d61ba5b47d (patch)
treedbf01ca472b0c3916f8c21eed14964440aa6c730 /etc
parentfd750cd064a46f364a7e06c9fe27d46ce11cd09a (diff)
downloadpfsense-baeb0599cf0f2a6a5caaf0af51f6d5d61ba5b47d.zip
pfsense-baeb0599cf0f2a6a5caaf0af51f6d5d61ba5b47d.tar.gz
Alix 2D6 crashes upgrade process withou out of diskspace
Updating the the RRD graphs causes two copies of each RRD's XML file to be stored in /tmp. On Nanobsd, the default /tmp size is 40mb. It doesn't require very many RRD XML dumps before this is exhausted.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/upgrade_config.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/inc/upgrade_config.inc b/etc/inc/upgrade_config.inc
index 8093ff3..86d3de9 100644
--- a/etc/inc/upgrade_config.inc
+++ b/etc/inc/upgrade_config.inc
@@ -2787,7 +2787,9 @@ function upgrade_080_to_081() {
file_put_contents("{$g['tmp_path']}/{$xmldumpnew}", $xml);
mwexec("$rrdtool restore -f {$g['tmp_path']}/{$xmldumpnew} {$rrddbpath}/{$database} 2>&1");
unset($xml);
-
+ # Default /tmp tmpfs is ~40mb, do not leave temp files around
+ unlink("{$g['tmp_path']}/{$xmldump}");
+ unlink("{$g['tmp_path']}/{$xmldumpnew}");
}
enable_rrd_graphing();
/* Let's save the RRD graphs after we run enable RRD graphing */
OpenPOWER on IntegriCloud