From dd0aa2ac52516c99232dd5c521d66637d512d537 Mon Sep 17 00:00:00 2001 From: simonl169 <98774388+simonl169@users.noreply.github.com> Date: Sun, 5 May 2024 16:43:38 +0200 Subject: [PATCH] Fix error that would accumulate crontab entries 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 --- init.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.sh b/init.sh index 65914ed..b503e23 100644 --- a/init.sh +++ b/init.sh @@ -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 \ No newline at end of file +crond -f