gendesign/tradein-mvp/ops/systemd/install.sh
bot-backend 639d3b0cea
All checks were successful
Deploy Trade-In / deploy (push) Successful in 36s
Deploy Trade-In / changes (push) Successful in 5s
Deploy Trade-In / build-frontend (push) Has been skipped
Deploy Trade-In / build-browser (push) Has been skipped
Deploy Trade-In / test (push) Successful in 30s
Deploy Trade-In / build-backend (push) Successful in 42s
feat(tradein): systemd timer scheduler — trigger script + units + SCHEDULER_ENABLE flag (#581)
Co-authored-by: bot-backend <bot-backend@gendsgn.local>
Co-committed-by: bot-backend <bot-backend@gendsgn.local>
2026-05-31 16:53:38 +00:00

12 lines
468 B
Bash

#!/bin/bash
# Run as root on VPS after deploy.
# Installs (or updates) the systemd timer that triggers scrape schedules every 60s.
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cp "$SCRIPT_DIR/tradein-scrape-trigger.service" /etc/systemd/system/
cp "$SCRIPT_DIR/tradein-scrape-trigger.timer" /etc/systemd/system/
systemctl daemon-reload
systemctl enable --now tradein-scrape-trigger.timer
systemctl status tradein-scrape-trigger.timer