diff options
author | Ermal <eri@pfsense.org> | 2014-02-17 09:56:37 +0000 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-03-14 10:42:35 -0300 |
commit | 20dad315ae53f0d168a5f1585af27d96a926366c (patch) | |
tree | 780b690882dbdb8429715a94f51144bb34de3871 /etc | |
parent | b824ff8d998e617414b1aa69b08680aa346d51c2 (diff) | |
download | pfsense-20dad315ae53f0d168a5f1585af27d96a926366c.zip pfsense-20dad315ae53f0d168a5f1585af27d96a926366c.tar.gz |
Provide upgrade code after changes done for Ticket #3441
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/upgrade_config.inc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/etc/inc/upgrade_config.inc b/etc/inc/upgrade_config.inc index c412052..b146946 100644 --- a/etc/inc/upgrade_config.inc +++ b/etc/inc/upgrade_config.inc @@ -3163,6 +3163,22 @@ function upgrade_099_to_100() { install_cron_job("/usr/bin/nice -n20 newsyslog", false); } +function upgrade_100_to_101() { + global $config, $g; + + if (!is_array($config['voucher'])) + return; + + foreach ($config['voucher'] as $cpzone => $cp) { + if (!is_array($cp['roll'])) + continue; + foreach ($cp['roll'] as $ridx => $rcfg) { + if (!empty($rcfg['comment'])) + $config['voucher'][$cpzone]['roll'][$ridx]['descr'] = $rcfg['comment']; + } + } +} + function upgrade_101_to_102() { global $config, $g; |