1
0
Fork 0

refactor(install-xcaddy.sh): replace apt with apt-get

This commit is contained in:
Vojtěch Mareš 2024-12-28 12:07:30 +01:00
parent 2495eba828
commit 78b080f83f
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D

View file

@ -1,11 +1,11 @@
#!/usr/bin/env bash
apt update
apt-get update
apt install -y curl debian-keyring debian-archive-keyring apt-transport-https
apt-get install -y curl debian-keyring debian-archive-keyring apt-transport-https
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/xcaddy/gpg.key' | gpg --dearmor -o /usr/share/keyrings/caddy-xcaddy-archive-keyring.gpg
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/xcaddy/debian.deb.txt' | tee /etc/apt/sources.list.d/caddy-xcaddy.list
apt update
apt install xcaddy
apt-get update
apt-get install xcaddy