Trying to integrate all functions into one container

This commit is contained in:
2026-01-13 19:13:22 +01:00
parent 880da3b79d
commit d13a36ee23
11 changed files with 928 additions and 0 deletions

23
AiO_Container/init.sh Normal file
View File

@@ -0,0 +1,23 @@
#!/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