fix: force cache update for caddy sources

This commit is contained in:
Julien Oculi 2024-06-05 21:12:41 +02:00
parent e70dc321d9
commit fb8bce4bba

View file

@ -6,6 +6,9 @@ if [[ $(which caddy) != "/usr/bin/caddy" ]]; then
# Install sources and keys # 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 curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | tee /etc/apt/sources.list.d/caddy-stable.list curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | tee /etc/apt/sources.list.d/caddy-stable.list
# Update newly added source
apt update
fi fi
# Install or upgrade caddy # Install or upgrade caddy