Skip to content

Commit cb462dc

Browse files
Update add-tailscale-lxc.sh (#2633)
1 parent 3401b76 commit cb462dc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

misc/add-tailscale-lxc.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ echo "deb [signed-by=/usr/share/keyrings/tailscale-archive-keyring.gpg] https://
6767
apt-get update &>/dev/null
6868
apt-get install -y tailscale &>/dev/null
6969
' || exit
70+
TAGS=$(awk -F': ' '/^tags:/ {print $2}' /etc/pve/lxc/${CTID}.conf)
71+
TAGS="${TAGS:+$TAGS; }tailscale"
72+
pct set "$CTID" -tags "${TAGS}"
7073
msg "\e[1;32m ✔ Installed Tailscale\e[0m"
7174

7275
msg "\e[1;31m Reboot ${CTID} LXC to apply the changes, then run tailscale up in the LXC console\e[0m"

0 commit comments

Comments
 (0)