Fixed wrong Caddy version getting installed

This commit is contained in:
Pinga 2024-09-20 14:34:44 +03:00
parent 253497dc50
commit a326f7a188

View file

@ -73,6 +73,13 @@ if [[ ("$OS" == "Ubuntu" && "$VER" == "22.04") || ("$OS" == "Ubuntu" && "$VER" =
# Step 1 - Components Installation
echo "Installing required packages..."
# Common Caddy setup
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' -o caddy-stable.gpg.key
gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg caddy-stable.gpg.key
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list
echo "Updating package lists..."
apt update -y
# Install common packages for all versions
@ -100,11 +107,6 @@ if [[ ("$OS" == "Ubuntu" && "$VER" == "22.04") || ("$OS" == "Ubuntu" && "$VER" =
SECURE_INSTALL_CMD="mysql_secure_installation"
fi
# Common Caddy setup
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' -o caddy-stable.gpg.key
gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg caddy-stable.gpg.key
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list
echo "Updating package lists..."
apt update -y