From cb462dcb39984041b45d0ad8730cc0fecabba1ba Mon Sep 17 00:00:00 2001 From: Michel Roegl-Brunner <73236783+michelroegl-brunner@users.noreply.github.com> Date: Tue, 25 Feb 2025 12:41:08 +0200 Subject: [PATCH] Update add-tailscale-lxc.sh (#2633) --- misc/add-tailscale-lxc.sh | 3 +++ 1 file changed, 3 insertions(+) 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"