14 lines
301 B
Bash
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;"
|