Skip to content

Commit

Permalink
Fix error that would accumulate crontab entries (#16)
Browse files Browse the repository at this point in the history
Changes init.sh to overwrite mycron file everytime instead of adding entries to it.
This fixes accumulating duplicates in the crontab file and spamming of the dns updates to the server.
Fixes #15
  • Loading branch information
simonl169 authored May 5, 2024
1 parent 965feff commit ef80c0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions init.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
python -c 'from owl import *; starting_message()' # Run starting message and logo
python main.py # Run Update once directly at the start
echo "$CRONVARS2" "cd /app && python main.py" >> mycron
echo "$CRONVARS2" "cd /app && python main.py" > mycron
crontab mycron
crond -f
crond -f

0 comments on commit ef80c0f

Please sign in to comment.