From 5546f0d927102d2ca61ad2aecb4eaadfc88cbafe Mon Sep 17 00:00:00 2001 From: Javan R Date: Thu, 26 Mar 2020 17:09:56 +0100 Subject: [PATCH] fixed time sync for schedules with WAIT --- backend/shell-scripts/installWittyPi.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/shell-scripts/installWittyPi.sh b/backend/shell-scripts/installWittyPi.sh index 2ac8940..f4ba378 100644 --- a/backend/shell-scripts/installWittyPi.sh +++ b/backend/shell-scripts/installWittyPi.sh @@ -25,8 +25,12 @@ else # Run the installer provided from WittyPi if [ $wittyPi -eq 2 ] ; then sh /var/www/html/backend/shell-scripts/installWittyPi2.sh + # make sure the schedule script gets executed after the time synchronization is fully done + sed -i 's/sleep 3/sleep 17/g' /home/pi/wittyPi/daemon.sh elif [ $wittyPi -eq 3 ] ; then sh /var/www/html/backend/shell-scripts/installWittyPi3.sh + # make sure the schedule script gets executed after the time synchronization is fully done + sed -i 's/sleep 3/sleep 17/g' /home/pi/wittypi/daemon.sh fi fi