summaryrefslogtreecommitdiffstats
path: root/etc/inc/upgrade_config.inc
diff options
context:
space:
mode:
authorsmos <seth.mos@dds.nl>2012-05-31 20:34:00 +0200
committersmos <seth.mos@dds.nl>2012-05-31 20:34:00 +0200
commitd4d5f7b4103edefc2075c50813c7750be4b202d6 (patch)
treeb699a6715b308c5a8a097b1838754719236c1b6a /etc/inc/upgrade_config.inc
parent05a4cebd90d35db07b588b1bb1cc969552cb3cd0 (diff)
downloadpfsense-d4d5f7b4103edefc2075c50813c7750be4b202d6.zip
pfsense-d4d5f7b4103edefc2075c50813c7750be4b202d6.tar.gz
Rename old RRD quality database to the new GW name so we continue the graph.
Diffstat (limited to 'etc/inc/upgrade_config.inc')
-rw-r--r--etc/inc/upgrade_config.inc7
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/inc/upgrade_config.inc b/etc/inc/upgrade_config.inc
index 5821c24..b42b837 100644
--- a/etc/inc/upgrade_config.inc
+++ b/etc/inc/upgrade_config.inc
@@ -2787,6 +2787,13 @@ function upgrade_084_to_085() {
}
$config['gateways']['gateway_group'] = $group_array_new;
}
+ /* rename old Quality RRD files in the process */
+ $rrddbpath = "/var/db/rrd";
+ foreach($oldnames as $old => $new) {
+ if(is_readable("{$rrddbpath}/{$old}-quality.rrd")) {
+ rename("{$rrddbpath}/{$old}-quality.rrd", "{$rrddbpath}/{$new}-quality.rrd");
+ }
+ }
}
function upgrade_085_to_086() {
OpenPOWER on IntegriCloud