From acd5fca551650ac798b38f7e685b1ffc0c75ba40 Mon Sep 17 00:00:00 2001 From: Sebastian Serfling Date: Thu, 10 Aug 2023 15:24:11 +0200 Subject: [PATCH] Change Create Windows Task to main.py --- setup-info.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup-info.sh b/setup-info.sh index 17eb296..ef6d445 100644 --- a/setup-info.sh +++ b/setup-info.sh @@ -14,7 +14,11 @@ git fetch git pull orgin main ## Add Crontab -crontab -l | { cat; echo "30 0 * * * /root/REPORTS/setup-info.sh"; } | crontab - +if [ -e .crontab ]; then + next +else: + crontab -l | { cat; echo "30 0 * * * /root/REPORTS/setup-info.sh"; } | crontab - + touch .crontab ## Install Python python3 -m pip install virtualenv