#!/bin/bash set -e echo "EXTRAURL: $EXTRAURL" if [[ -f "$REPOFILE" ]]; then echo "URL file exists" else touch $REPOFILE echo $EXTRAURL | tee $REPOFILE fi echo "nameserver $DNSSRV" > /etc/resolv.conf echo "search local" >> /etc/resolv.conf git clone https://${GITEA_TOKEN}@${GITURL}/${GITREPOPATH} ln -s /etc/customMirrors/Repo-IP-lists/$IPV4FILENAME /etc/customMirrors/$IPV4FILENAME ln -s /etc/customMirrors/Repo-IP-lists/$IPV6FILENAME /etc/customMirrors/$IPV6FILENAME echo -n "$CRONTABSET /etc/debmirror/venv/bin/python3 /etc/debmirror/mainDocker.py" > /etc/crontabs/customListCron exec /usr/sbin/crond -f