#!/bin/sh set -eu : "${CRON:=0 3 * * *}" # /opt is read-only when the container runs with read_only: true, so the # generated crontab lives on the tmpfs. CRON_CONFIG_FILE=/tmp/crontab printf '%s /usr/local/bin/seafile-backup\n' "$CRON" > "$CRON_CONFIG_FILE" exec supercronic -passthrough-logs -quiet "$CRON_CONFIG_FILE"