mirror of
https://github.com/getnamingo/registry.git
synced 2025-08-06 01:25:00 +02:00
Fixed wrong Caddy version getting installed
This commit is contained in:
parent
253497dc50
commit
a326f7a188
1 changed files with 7 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue