From 2344bed478676b498a014dcec618db37e3422fd1 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Wed, 30 Sep 2015 14:33:29 -0300 Subject: Use product_name global variable in more places --- src/etc/inc/upgrade_config.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/etc/inc/upgrade_config.inc') 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. */ -- cgit v1.1