Update add-tailscale-lxc.sh
tweak
This commit is contained in:
parent
6ba8c5e06c
commit
325288f099
1 changed files with 3 additions and 2 deletions
|
@ -27,6 +27,7 @@ while true; do
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
header_info
|
header_info
|
||||||
|
echo "Loading..."
|
||||||
function msg() {
|
function msg() {
|
||||||
local TEXT="$1"
|
local TEXT="$1"
|
||||||
echo -e "$TEXT"
|
echo -e "$TEXT"
|
||||||
|
@ -56,7 +57,7 @@ cat <<EOF >>$CTID_CONFIG_PATH
|
||||||
lxc.cgroup2.devices.allow: c 10:200 rwm
|
lxc.cgroup2.devices.allow: c 10:200 rwm
|
||||||
lxc.mount.entry: /dev/net/tun dev/net/tun none bind,create=file
|
lxc.mount.entry: /dev/net/tun dev/net/tun none bind,create=file
|
||||||
EOF
|
EOF
|
||||||
|
header_info
|
||||||
msg "Installing Tailscale..."
|
msg "Installing Tailscale..."
|
||||||
lxc-attach -n $CTID -- bash -c "$(curl -fsSL https://tailscale.com/install.sh)" &>/dev/null || exit
|
lxc-attach -n $CTID -- bash -c "$(curl -fsSL https://tailscale.com/install.sh)" &>/dev/null || exit
|
||||||
msg "Installed Tailscale"
|
msg "Installed Tailscale"
|
||||||
|
|
Loading…
Reference in a new issue