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