Push custom apt sources.list to container

This commit is contained in:
Thorsten Spille 2021-04-14 01:01:05 +02:00
parent 0bad72e0ae
commit 0ca2d51173
2 changed files with 7 additions and 2 deletions

View File

@ -111,8 +111,7 @@ sleep 5;
echo -e "$LXC_PWD\n$LXC_PWD" | lxc-attach -n$LXC_NBR passwd;
lxc-attach -n$LXC_NBR mkdir /root/.ssh;
echo -e "$LXC_AUTHORIZED_KEY" | lxc-attach -n$LXC_NBR tee /root/.ssh/authorized_keys;
# usually not needed after adding authorized_keys:
# lxc-attach -n$LXC_NBR systemctl restart ssh.service
pct push $LXC_NBR ./sources.list /etc/apt/sources.list
pct push $LXC_NBR ./zamba.conf /root/zamba.conf
pct push $LXC_NBR ./$opt.sh /root/$opt.sh
echo "Install '$opt'!"

6
sources.list Normal file
View File

@ -0,0 +1,6 @@
deb http://ftp.de.debian.org/debian buster main contrib
deb http://ftp.de.debian.org/debian buster-updates main contrib
# security updates
deb http://security.debian.org buster/updates main contrib