fix: remove sudo from caddy install script

This commit is contained in:
Julien Oculi 2024-05-30 18:06:05 +02:00
parent 01770c9810
commit fab58379c1

View file

@ -5,7 +5,7 @@ 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' | sudo 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
fi fi
# Install or upgrade caddy # Install or upgrade caddy