#!/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_UPDATE_INTERVAL_SECONDS}
done