From 1fc088a8a8e4907c09742f0426bb7bebeca38304 Mon Sep 17 00:00:00 2001 From: Nico Rey Date: Sat, 30 May 2020 16:50:06 -0300 Subject: [PATCH] disable error checking during crontab --- install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 0212628..45e0613 100755 --- a/install.sh +++ b/install.sh @@ -152,6 +152,7 @@ else fi ### Cron the scheduler +set +e crontab -l | grep -q "raspberry-noaa" if [ $? -eq 0 ]; then log_done "Crontab for schedule.sh already exists" @@ -159,10 +160,11 @@ else cat <(crontab -l) <(echo "1 0 * * * /home/pi/raspberry-noaa/schedule.sh") | crontab - log_done "Crontab installed" fi +set -e ### Setup Nginx log_running "Setting up Nginx..." -sudo cp templates/nginx.cfg /etc/nginx/sites-enabled/wx +sudo cp templates/nginx.cfg /etc/nginx/sites-enabled/default ( sudo mkdir -p /var/www/wx sudo chown -R www-data:www-data /var/www/wx