docker-ubuntumirror/mirror.run

14 lines
218 B
Plaintext
Raw Permalink Normal View History

2016-04-08 20:41:48 +00:00
#!/bin/bash
2016-04-09 14:18:35 +00:00
# HOME isn't set up for some reason
export HOME=/root
2016-04-11 00:26:57 +00:00
# cleanup previous runs
rm -rf /var/mirror/ubuntu/.temp
2016-04-08 21:08:04 +00:00
2016-04-11 00:26:57 +00:00
while true ; do
cd /opt/mirror && make
sleep ${MIRROR_INTERVAL_SECONDS:-43200}
done