mirror of
https://github.com/tomasriveral/vps-config.git
synced 2026-08-12 02:28:38 +02:00
fix OS detection bug
This commit is contained in:
+7
-3
@@ -56,7 +56,9 @@ apt install -y \
|
|||||||
|
|
||||||
step "Cloning configuration repository"
|
step "Cloning configuration repository"
|
||||||
|
|
||||||
git clone "$REPO"
|
if [ ! -d "$REPO_DIR" ]; then
|
||||||
|
git clone "$REPO"
|
||||||
|
fi
|
||||||
cd "$REPO_DIR"
|
cd "$REPO_DIR"
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
@@ -73,10 +75,12 @@ curl -fsSL \
|
|||||||
|
|
||||||
chmod a+r /etc/apt/keyrings/docker.asc
|
chmod a+r /etc/apt/keyrings/docker.asc
|
||||||
|
|
||||||
|
. /etc/os-release
|
||||||
|
|
||||||
cat >/etc/apt/sources.list.d/docker.list <<EOF
|
cat >/etc/apt/sources.list.d/docker.list <<EOF
|
||||||
deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] \
|
deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] \
|
||||||
https://download.docker.com/linux/debian \
|
https://download.docker.com/linux/$ID \
|
||||||
$(. /etc/os-release && echo "$VERSION_CODENAME") stable
|
$VERSION_CODENAME stable
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
apt update
|
apt update
|
||||||
|
|||||||
Reference in New Issue
Block a user