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
|
|
|
|
2020-02-15 18:21:00 +00:00
|
|
|
while sleep 1 ; do
|
2016-04-11 00:26:57 +00:00
|
|
|
cd /opt/mirror && make
|
|
|
|
|
2020-02-15 19:41:56 +00:00
|
|
|
sleep ${MIRROR_UPDATE_INTERVAL_SECONDS}
|
2016-04-11 00:26:57 +00:00
|
|
|
done
|