fix(addons): ensure curl is installed before use in all addon scripts (#11718)

This commit is contained in:
CanbiZ (MickLesk)
2026-02-09 14:11:51 +01:00
committed by GitHub
parent ee3e53a1a2
commit 157e69b365
15 changed files with 58 additions and 3 deletions

View File

@@ -89,6 +89,12 @@ if ! dig +short pkgs.tailscale.com | grep -qvE "^127\.|^0\.0\.0\.0$"; then
echo "nameserver 1.1.1.1" >"$ORIG_RESOLV"
fi
if ! command -v curl &>/dev/null; then
echo "[INFO] curl not found, installing..."
apt-get update -qq
apt-get install -y curl >/dev/null
fi
curl -fsSL https://pkgs.tailscale.com/stable/${ID}/${VER}.noarmor.gpg \
| tee /usr/share/keyrings/tailscale-archive-keyring.gpg >/dev/null