diff options
author | smos <seth.mos@dds.nl> | 2012-05-31 20:34:00 +0200 |
---|---|---|
committer | smos <seth.mos@dds.nl> | 2012-05-31 20:34:00 +0200 |
commit | d4d5f7b4103edefc2075c50813c7750be4b202d6 (patch) | |
tree | b699a6715b308c5a8a097b1838754719236c1b6a /etc/inc/upgrade_config.inc | |
parent | 05a4cebd90d35db07b588b1bb1cc969552cb3cd0 (diff) | |
download | pfsense-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.inc | 7 |
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() { |