Remove all .xml file generated from upgrade since it makes /var full

This commit is contained in:
Ermal 2014-07-04 14:51:39 +00:00
parent 2e906a1a9b
commit 95cdee8774

View File

@ -2110,6 +2110,7 @@ function upgrade_054_to_055() {
/* Let's save the RRD graphs after we run enable RRD graphing */
/* The function will restore the rrd.tgz so we will save it after */
exec("cd /; LANG=C NO_REMOUNT=1 RRDDBPATH='{$rrddbpath}' CF_CONF_PATH='{$g['cf_conf_path']}' /etc/rc.backup_rrd.sh");
exec("/bin/rm /var/db/rrd/*.xml);
if ($g['booting'])
echo "Updating configuration...";
}