From 34834e7ef9817eca591b367fefe1a543a11cc315 Mon Sep 17 00:00:00 2001 From: jim-p Date: Wed, 28 Jul 2010 17:19:16 -0400 Subject: Only output these messages when booting. --- etc/inc/upgrade_config.inc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'etc') diff --git a/etc/inc/upgrade_config.inc b/etc/inc/upgrade_config.inc index 8f07a71..975716d 100644 --- a/etc/inc/upgrade_config.inc +++ b/etc/inc/upgrade_config.inc @@ -1703,7 +1703,8 @@ function upgrade_054_to_055() { $xmldump = "{$database}.old.xml"; $xmldumpnew = "{$database}.new.xml"; - echo "Migrate RRD database {$database} to new format \n"; + if ($g['booting']) + echo "Migrate RRD database {$database} to new format \n"; mwexec("$rrdtool tune {$rrddbpath}{$database} -r roundtrip:delay 2>&1"); dump_rrd_to_xml("{$rrddbpath}/{$database}", "{$g['tmp_path']}/{$xmldump}"); @@ -1740,7 +1741,8 @@ function upgrade_054_to_055() { $xmldumptmp = "{$database}.tmp.xml"; $xmldumpnew = "{$database}.new.xml"; - echo "Migrate RRD database {$database} to new format \n"; + if ($g['booting']) + echo "Migrate RRD database {$database} to new format \n"; /* rename DS source */ mwexec("$rrdtool tune {$rrddbpath}/{$database} -r in:inpass 2>&1"); mwexec("$rrdtool tune {$rrddbpath}/{$database} -r out:outpass 2>71"); @@ -1787,7 +1789,8 @@ function upgrade_054_to_055() { } enable_rrd_graphing(); - echo "Updating configuration..."; + if ($g['booting']) + echo "Updating configuration..."; } -- cgit v1.1