Trying to integrate all functions into one container
This commit is contained in:
23
AiO_Container/init.sh
Normal file
23
AiO_Container/init.sh
Normal 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
|
||||
Reference in New Issue
Block a user