diff --git a/misc/add-tailscale-lxc.sh b/misc/add-tailscale-lxc.sh index 36d148e4..93f37b9c 100644 --- a/misc/add-tailscale-lxc.sh +++ b/misc/add-tailscale-lxc.sh @@ -67,6 +67,9 @@ echo "deb [signed-by=/usr/share/keyrings/tailscale-archive-keyring.gpg] https:// apt-get update &>/dev/null apt-get install -y tailscale &>/dev/null ' || exit +TAGS=$(awk -F': ' '/^tags:/ {print $2}' /etc/pve/lxc/${CTID}.conf) +TAGS="${TAGS:+$TAGS; }tailscale" +pct set "$CTID" -tags "${TAGS}" msg "\e[1;32m ✔ Installed Tailscale\e[0m" msg "\e[1;31m Reboot ${CTID} LXC to apply the changes, then run tailscale up in the LXC console\e[0m"