diff options
author | Renato Botelho <renato@netgate.com> | 2015-09-30 14:33:29 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-09-30 14:33:37 -0300 |
commit | 2344bed478676b498a014dcec618db37e3422fd1 (patch) | |
tree | f278a4652a311ce1935d40e626ec4310b45737b6 /src/etc/inc/upgrade_config.inc | |
parent | c580e34c6fe24107817d6a72956e77b23f043beb (diff) | |
download | pfsense-2344bed478676b498a014dcec618db37e3422fd1.zip pfsense-2344bed478676b498a014dcec618db37e3422fd1.tar.gz |
Use product_name global variable in more places
Diffstat (limited to 'src/etc/inc/upgrade_config.inc')
-rw-r--r-- | src/etc/inc/upgrade_config.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/etc/inc/upgrade_config.inc b/src/etc/inc/upgrade_config.inc index 49f0eae..9bf570e 100644 --- a/src/etc/inc/upgrade_config.inc +++ b/src/etc/inc/upgrade_config.inc @@ -2082,7 +2082,7 @@ function upgrade_054_to_055() { $rrddbpath = "/var/db/rrd/"; $rrdtool = "/usr/bin/nice -n20 /usr/local/bin/rrdtool"; - if ($g['platform'] != "pfSense") { + if ($g['platform'] != $g['product_name']) { /* restore the databases, if we have one */ if (restore_rrd()) { /* Make sure to move the rrd backup out of the way. We will make a new one after converting. */ @@ -2811,7 +2811,7 @@ function upgrade_080_to_081() { $rrddbpath = "/var/db/rrd/"; $rrdtool = "/usr/bin/nice -n20 /usr/local/bin/rrdtool"; - if ($g['platform'] != "pfSense") { + if ($g['platform'] != $g['product_name']) { /* restore the databases, if we have one */ if (restore_rrd()) { /* Make sure to move the rrd backup out of the way. We will make a new one after converting. */ @@ -3283,7 +3283,7 @@ function upgrade_095_to_096() { $rrddbpath = "/var/db/rrd"; $rrdtool = "/usr/local/bin/rrdtool"; - if ($g['platform'] != "pfSense") { + if ($g['platform'] != $g['product_name']) { /* restore the databases, if we have one */ if (restore_rrd()) { /* Make sure to move the rrd backup out of the way. We will make a new one after converting. */ |