diff --git a/bash/portal/graphs.sh b/bash/portal/graphs.sh index d2e5a68..bb15c9c 100755 --- a/bash/portal/graphs.sh +++ b/bash/portal/graphs.sh @@ -190,13 +190,21 @@ sudo /etc/init.d/collectd force-reload ## EDIT CRONTAB echo -e "\033[33mAdding jobs to crontab..." + +# The next block is temporary in order to insure this file is +# deleted on older installation before the project renaming. if [ -f /etc/cron.d/adsb-feeder-performance-graphs ]; then echo -e "Removing previously installed cron file..." sudo rm -f /etc/cron.d/adsb-feeder-performance-graphs fi + +if [ -f /etc/cron.d/adsb-receiver-performance-graphs ]; then + echo -e "Removing previously installed cron file..." + sudo rm -f /etc/cron.d/adsb-receiver-performance-graphs +fi echo -e "\033[37m" chmod +x $BUILDDIR/portal/graphs/make-collectd-graphs.sh -sudo tee -a /etc/cron.d/adsb-feeder-performance-graphs > /dev/null < /dev/null <