diff options
author | Ermal LUÇI <eri@pfsense.org> | 2014-12-01 10:02:55 +0100 |
---|---|---|
committer | Ermal LUÇI <eri@pfsense.org> | 2014-12-01 10:02:55 +0100 |
commit | 7ceff68a5880f93596b7a27736344500d09db0da (patch) | |
tree | a84e1e34baadf6f0cefe51bd4815c2f6078d3dd8 /etc/inc | |
parent | e3afacbb410da30eb47c41f702c1cc896b3fb042 (diff) | |
download | pfsense-7ceff68a5880f93596b7a27736344500d09db0da.zip pfsense-7ceff68a5880f93596b7a27736344500d09db0da.tar.gz |
Unlink temporary xml file to avoid filling up space with junk files
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/upgrade_config.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/inc/upgrade_config.inc b/etc/inc/upgrade_config.inc index 38b322b..41db4a8 100644 --- a/etc/inc/upgrade_config.inc +++ b/etc/inc/upgrade_config.inc @@ -2044,6 +2044,8 @@ function upgrade_054_to_055() { mwexec("$rrdtool restore -f {$g['tmp_path']}/{$xmldumpnew} {$rrddbpath}/{$database} 2>&1"); unset($rrdold); + @unlink("{$g['tmp_path']}/{$xmldump}"); + @unlink("{$g['tmp_path']}/{$xmldumpnew}"); } /* let apinger recreate required files */ if (!platform_booting()) @@ -2106,6 +2108,8 @@ function upgrade_054_to_055() { mwexec("/bin/sync"); mwexec("$rrdtool resize {$rrddbpath}/{$database} 3 GROW 2000;/bin/mv resize.rrd {$rrddbpath}/{$database} 2>&1"); unset($rrdxmlarray); + @unlink("{$g['tmp_path']}/{$xmldump}"); + @unlink("{$g['tmp_path']}/{$xmldumpnew}"); } if (!platform_booting()) enable_rrd_graphing(); |