From d8521347eb28553a96cd2e25b1e19e42ba18a2fa Mon Sep 17 00:00:00 2001 From: tteckster Date: Sat, 1 Jul 2023 17:26:59 -0400 Subject: [PATCH] Update cloudflared-install.sh Debian 12 compatible --- install/cloudflared-install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install/cloudflared-install.sh b/install/cloudflared-install.sh index 921da7cd..d19fa2b7 100644 --- a/install/cloudflared-install.sh +++ b/install/cloudflared-install.sh @@ -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"