Files
apt-mirror/entrypoint.sh
2026-02-23 21:28:15 +03:00

14 lines
301 B
Bash

#!/bin/bash
set -e
echo "[$(date)] Initial mirror sync starting..."
apt-mirror
echo "[$(date)] Initial sync completed"
# Start cron in foreground to keep container running
echo "[$(date)] Starting cron daemon for scheduled syncs"
cron
echo "[$(date)] Starting nginx..."
exec nginx -g "daemon off;"