summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorWarren Baker <warren@decoy.co.za>2011-05-26 00:43:28 +0200
committerWarren Baker <warren@decoy.co.za>2011-05-26 00:43:28 +0200
commit838e4eb8762a000509cf98e3bd5e2a2cceac06ff (patch)
tree3cfe12a4c7ab8bd016277b586e6ceee4b1ed77bc /etc
parent474f36d1b277b3e0732496bf0ca8aa1659710809 (diff)
downloadpfsense-838e4eb8762a000509cf98e3bd5e2a2cceac06ff.zip
pfsense-838e4eb8762a000509cf98e3bd5e2a2cceac06ff.tar.gz
Rather make use of $global variable for RRD path.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/upgrade_config.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/upgrade_config.inc b/etc/inc/upgrade_config.inc
index 8a1bd68..c380378 100644
--- a/etc/inc/upgrade_config.inc
+++ b/etc/inc/upgrade_config.inc
@@ -2492,8 +2492,9 @@ function upgrade_077_to_078() {
}
function upgrade_078_to_079() {
+ global $g;
/* Delete old and unused RRD file */
- unlink_if_exists("/var/db/rrd/captiveportal-totalusers.rrd");
+ unlink_if_exists("{$g['vardb_path']}/rrd/captiveportal-totalusers.rrd");
}
?>
OpenPOWER on IntegriCloud