From 72ff02cf231c60314ca4557c576f513088830e40 Mon Sep 17 00:00:00 2001 From: yyamashita Date: Tue, 2 Jun 2026 10:41:52 +0900 Subject: Revert "Add cron job registration to install.sh" This reverts commit 5e9ed4fe05eda672293dbfe6bf10da6d9635261b. --- git/install.sh | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'git') diff --git a/git/install.sh b/git/install.sh index 54b9dda..d4522ea 100755 --- a/git/install.sh +++ b/git/install.sh @@ -71,23 +71,5 @@ for repo_src in "$HOOKS_SRC"/*/; do done done -echo "" -echo "=== Cron jobs ===" -CRON_JOBS=( - "0 5 * * * docker exec tokyo-app node -e \"fetch('http://localhost:3000/api/scrape').then(r=>r.text()).then(console.log)\"" - "0 8 * * * docker exec tokyo-livehouse-events-scraper-1 node --import tsx/esm /app/scripts/send-recap.ts >> /var/log/recap.log 2>&1" -) - -current_cron="$(crontab -l 2>/dev/null || true)" -for job in "${CRON_JOBS[@]}"; do - if echo "$current_cron" | grep -qF "$job"; then - echo " exists: $job" - else - (echo "$current_cron"; echo "$job") | crontab - - current_cron="$(crontab -l)" - echo " added: $job" - fi -done - echo "" echo "Done." -- cgit v1.2.3