From 9444bcb0590b2167897f8701c71456c8f2fcd467 Mon Sep 17 00:00:00 2001 From: Matan Sarsha Date: Sun, 1 Sep 2024 20:23:10 +0300 Subject: [PATCH] feat(scripts): cronjob --- install/freegamesclaimer-install.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/install/freegamesclaimer-install.sh b/install/freegamesclaimer-install.sh index 1d648cae..47c30c58 100644 --- a/install/freegamesclaimer-install.sh +++ b/install/freegamesclaimer-install.sh @@ -76,11 +76,15 @@ msg_ok "Created dummy config file" msg_info "Creating cron jobs" msg_info "Creating daily cronjob for epic games" - $STD (crontab -l ; echo "0 0 * * * cd /opt/freegamesclaimer && node epic-games") | crontab - + + crontab -l | grep -v "0 0 * * * cd /opt/freegamesclaimer && node epic-games" | crontab - + echo "0 0 * * * /path/to/your/command" | crontab - + +# (crontab -l ; echo "0 0 * * * cd /opt/freegamesclaimer && node epic-games") | crontab - msg_ok "created" msg_info "Creating daily cronjob for gog" - $STD (crontab -l ; echo "2 0 * * * cd /opt/freegamesclaimer && node gog") | crontab - +# (crontab -l ; echo "2 0 * * * cd /opt/freegamesclaimer && node gog") | crontab - msg_ok "created" msg_ok "Cron jobs created"