2024-05-30 13:10:20 +02:00
|
|
|
# Check if already installed
|
|
|
|
if [[ $(which caddy) != "/usr/bin/caddy" ]]; then
|
|
|
|
# Install prerequistes
|
|
|
|
nala install -y debian-keyring debian-archive-keyring apt-transport-https curl
|
|
|
|
|
|
|
|
# Install sources and keys
|
|
|
|
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
|
2024-05-30 18:06:05 +02:00
|
|
|
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | tee /etc/apt/sources.list.d/caddy-stable.list
|
2024-05-30 13:10:20 +02:00
|
|
|
fi
|
2024-05-29 13:11:22 +02:00
|
|
|
|
2024-05-30 13:10:20 +02:00
|
|
|
# Install or upgrade caddy
|
2024-05-29 13:11:22 +02:00
|
|
|
nala install -y caddy
|