summaryrefslogtreecommitdiffstats
path: root/etc/inc/upgrade_config.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2014-07-04 19:53:02 +0000
committerErmal <eri@pfsense.org>2014-07-04 19:53:02 +0000
commit3fe260c2c0bb79158e372ff5b97b4827d0d87799 (patch)
treebd7793275feb2591f3b0c9a42087b32f7fe62c97 /etc/inc/upgrade_config.inc
parent95cdee8774f065ca5366d408791ca235f9fb97cd (diff)
downloadpfsense-3fe260c2c0bb79158e372ff5b97b4827d0d87799.zip
pfsense-3fe260c2c0bb79158e372ff5b97b4827d0d87799.tar.gz
Use a php function rather tan using exec. Suggested-by: garga
Diffstat (limited to 'etc/inc/upgrade_config.inc')
-rw-r--r--etc/inc/upgrade_config.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/upgrade_config.inc b/etc/inc/upgrade_config.inc
index 8327243..9c70511 100644
--- a/etc/inc/upgrade_config.inc
+++ b/etc/inc/upgrade_config.inc
@@ -2110,7 +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);
+ unlink_if_exists("{$g['vardb_path']}"/rrd/*.xml");
if ($g['booting'])
echo "Updating configuration...";
}
OpenPOWER on IntegriCloud