From 95cdee8774f065ca5366d408791ca235f9fb97cd Mon Sep 17 00:00:00 2001 From: Ermal Date: Fri, 4 Jul 2014 14:51:39 +0000 Subject: [PATCH] Remove all .xml file generated from upgrade since it makes /var full --- etc/inc/upgrade_config.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/etc/inc/upgrade_config.inc b/etc/inc/upgrade_config.inc index 103573aca7..8327243b02 100644 --- a/etc/inc/upgrade_config.inc +++ b/etc/inc/upgrade_config.inc @@ -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..."; }