news-digest: per-instance cron schedule via env
Hardcoded crontab → render at container start from DIGEST_CRON_AM + DIGEST_CRON_PM. Defaults match the original 0800 / 2000 so existing deploys are no-ops. scripts/add-digest-user.sh learns --am and --pm flags so each teammate's stack can fire on their hours: scripts/add-digest-user.sh bob --am "0 6 * * *" --pm "0 17 * * *" scripts/add-digest-user.sh carol --pm "30 18 * * 1-5" # weekdays only Standard 5-field cron syntax; busybox crond honors the container's \$TZ. Removed the now-unused stacks/news-digest/crontab file and the matching COPY in the Dockerfile.
This commit is contained in:
@@ -60,6 +60,12 @@ DIGEST_MINIFLUX_LOCAL_CATEGORY=Local
|
||||
DIGEST_MINIFLUX_HEADLINES_HOURS=8
|
||||
DIGEST_MINIFLUX_HEADLINES_MAX=15
|
||||
|
||||
# Cron schedule (standard 5-field). busybox crond honors $TZ above.
|
||||
# Two fires per day by convention (morning / evening); change times
|
||||
# per-user to match working hours.
|
||||
DIGEST_CRON_AM=0 8 * * *
|
||||
DIGEST_CRON_PM=0 20 * * *
|
||||
|
||||
# ── output dir on host (bind-mounted) ────────────────────────────────
|
||||
# Separate from /opt/docker/conf/<stack>/ to keep generated content
|
||||
# distinct from config. Owned by container UID; writes are atomic.
|
||||
|
||||
Reference in New Issue
Block a user