summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 1c17215..225bc0e 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