Check for /etc/rc.local before removing line.

pull/290/merge
Joe Prochazka 2018-04-09 22:57:49 -04:00
rodzic c3459349bd
commit 795f55b6c7
1 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -149,8 +149,10 @@ if ! grep -Fxq "$RECEIVER_BUILD_DIRECTORY/adsbexchange/adsbexchange-netcat_maint
sudo kill -9 $(ps -aux | grep '[f]eed.adsbexchange.com' | awk '{print $2}') &> /dev/null
fi
# Remove the depreciated netcat script start up line.
echo -e "\e[94m Removing the netcat startup script line to the file /etc/rc.local...\e[97m"
sudo sed -i /$RECEIVER_BUILD_DIRECTORY\/adsbexchange\/adsbexchange-netcat_maint.sh &/d /etc/rc.local 2>&1
if [ -f /etc/rc.local ]; then
echo -e "\e[94m Removing the netcat startup script line to the file /etc/rc.local...\e[97m"
sudo sed -i /$RECEIVER_BUILD_DIRECTORY\/adsbexchange\/adsbexchange-netcat_maint.sh &/d /etc/rc.local 2>&1
fi
fi
echo -e ""