Update cloudflared-install.sh

Debian 12 compatible
This commit is contained in:
tteckster 2023-07-01 17:26:59 -04:00 committed by GitHub
parent 2cd7e87f0c
commit d8521347eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,8 +21,9 @@ msg_ok "Installed Dependencies"
msg_info "Installing Cloudflared"
mkdir -p --mode=0755 /usr/share/keyrings
VERSION="$(awk -F'=' '/^VERSION_CODENAME=/{ print $NF }' /etc/os-release)"
curl -fsSL https://pkg.cloudflare.com/cloudflare-main.gpg | tee /usr/share/keyrings/cloudflare-main.gpg >/dev/null
echo 'deb [signed-by=/usr/share/keyrings/cloudflare-main.gpg] https://pkg.cloudflare.com/cloudflared bullseye main' | tee /etc/apt/sources.list.d/cloudflared.list >/dev/null
echo 'deb [signed-by=/usr/share/keyrings/cloudflare-main.gpg] https://pkg.cloudflare.com/cloudflared $VERSION main' | tee /etc/apt/sources.list.d/cloudflared.list >/dev/null
$STD apt-get update
$STD apt-get install -y cloudflared
msg_ok "Installed Cloudflared"