Merge pull request #802 from Xon/patch-1

Alix 2D6 crashes during 2.1 upgrade process with an out of diskspace error
This commit is contained in:
Ermal Luçi 2013-09-16 00:28:26 -07:00
commit 4f9476693b

View File

@ -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 */