diff --git a/src/authentik/constants-service.conf b/src/authentik/constants-service.conf index af4c4ca..8be41e4 100644 --- a/src/authentik/constants-service.conf +++ b/src/authentik/constants-service.conf @@ -8,7 +8,7 @@ # This file contains the project constants on service level # Debian Version, which will be installed -LXC_TEMPLATE_VERSION="debian-12-standard" +LXC_TEMPLATE_VERSION="debian-13-standard" # Create sharefs mountpoint LXC_MP=1 diff --git a/src/authentik/install-service.sh b/src/authentik/install-service.sh index 766f38d..3333df4 100644 --- a/src/authentik/install-service.sh +++ b/src/authentik/install-service.sh @@ -10,14 +10,9 @@ source /root/zamba.conf source /root/constants-service.conf # Add Docker's official GPG key: -install -m 0755 -d /etc/apt/keyrings -curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg -chmod a+r /etc/apt/keyrings/docker.gpg +inst_docker -# Add the repository to Apt sources: -echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null -apt-get update -DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt-get install -y -qq docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin pwgen +DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt-get install -y -qq pwgen SECRET=$(random_password) myip=$(ip a s dev eth0 | grep -m1 inet | cut -d' ' -f6 | cut -d'/' -f1) diff --git a/src/functions.sh b/src/functions.sh index de745c8..35d70a6 100644 --- a/src/functions.sh +++ b/src/functions.sh @@ -109,4 +109,10 @@ inst_crowdsec() { inst_45drives() { apt_repo "45drives" "https://repo.45drives.com/key/gpg.asc" "https://repo.45drives.com/enterprise/debian" "bookworm" "main" apt update +} + +inst_docker() { + apt_repo "docker" "https://download.docker.com/linux/debian/gpg" "https://download.docker.com/linux/debian" "$(lsb_release -cs)" stable + apt update + DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt-get install -y -qq docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin pwgen } \ No newline at end of file