Skip to content

Commit

Permalink
fixed time sync for schedules with WAIT
Browse files Browse the repository at this point in the history
  • Loading branch information
JavanXD committed Mar 26, 2020
1 parent fcc1e0d commit 5546f0d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions backend/shell-scripts/installWittyPi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5546f0d

Please sign in to comment.