docker-ubuntumirror/mirror.run

14 lines
214 B
Bash

#!/bin/bash
# HOME isn't set up for some reason
export HOME=/root
# cleanup previous runs
rm -rf /var/mirror/ubuntu/.temp
while sleep 1 ; do
cd /opt/mirror && make
sleep ${MIRROR_INTERVAL_SECONDS}
done