summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryyamashita <yyamashita@hetzner.yyamashita.com>2026-06-02 10:41:52 +0900
committeryyamashita <yyamashita@hetzner.yyamashita.com>2026-06-02 10:41:52 +0900
commit72ff02cf231c60314ca4557c576f513088830e40 (patch)
treead9a9d3449d33c3126bf091dffb3b1e39d1883dc
parent5e9ed4fe05eda672293dbfe6bf10da6d9635261b (diff)
Revert "Add cron job registration to install.sh"
This reverts commit 5e9ed4fe05eda672293dbfe6bf10da6d9635261b.
-rwxr-xr-xgit/install.sh18
1 files changed, 0 insertions, 18 deletions
diff --git a/git/install.sh b/git/install.sh
index 54b9dda..d4522ea 100755
--- a/git/install.sh
+++ b/git/install.sh
@@ -72,22 +72,4 @@ for repo_src in "$HOOKS_SRC"/*/; do
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."