From 323b71a806de7587aa4191a167844b574bf68ced Mon Sep 17 00:00:00 2001 From: romeo-golf Date: Sun, 8 Jan 2017 03:25:50 +0000 Subject: [PATCH] Tidy up work to multi-platform graphing --- bash/portal/graphs.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bash/portal/graphs.sh b/bash/portal/graphs.sh index 28bcc70..e2671f3 100755 --- a/bash/portal/graphs.sh +++ b/bash/portal/graphs.sh @@ -73,7 +73,7 @@ fi if [[ ${DUMP1090_INSTALLED} = "true" ]] && [[ ${DUMP1090_FORK} = "mutability" ]] ; then echo -e "\e[94m Modifying the dump1090-mutability init script to add noise measurements...\e[97m" - sudo sed -i 's/ARGS=""/ARGS="--measure-noise "/g' /etc/init.d/dump1090-mutability + sudo sed -i 's/ARGS=""/ARGS="--measure-noise "/g' /etc/init.d/dump1090-mutability 2>&1 echo -e "\e[94m Reloading the systemd manager configuration...\e[97m" sudo systemctl daemon-reload 2>&1 echo -e "\e[94m Reloading dump1090-mutability...\e[97m" @@ -87,10 +87,10 @@ fi # Check if the collectd config file exists and if so back it up. if [[ -f ${COLLECTD_CONFIG} ]] ; then echo -e "\e[94m Backing up the current collectd.conf file...\e[97m" - sudo cp ${COLLECTD_CONFIG} ${COLLECTD_CONFIG}.bak + sudo cp ${COLLECTD_CONFIG} ${COLLECTD_CONFIG}.bak 2>&1 fi -# Generate new collectd config. +# Generate new collectd config. echo -e "\e[94m Replacing the current collectd.conf file...\e[97m" sudo tee ${COLLECTD_CONFIG} > /dev/null <