mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-07-12 00:47:37 +00:00
@ -1,12 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
echo -e "\e[1;33mThis script will add Tailscale to an existing LXC Container ONLY\e[0m"
|
||||
while true; do
|
||||
read -p "Did you replace 106 with your LXC ID? Proceed(y/n)?" yn
|
||||
case $yn in
|
||||
[Yy]* ) break;;
|
||||
[Nn]* ) exit;;
|
||||
* ) echo "Please answer yes or no.";;
|
||||
esac
|
||||
read -p "Did you replace 106 with your LXC ID? Proceed(y/n)?" yn
|
||||
case $yn in
|
||||
[Yy]*) break ;;
|
||||
[Nn]*) exit ;;
|
||||
*) echo "Please answer yes or no." ;;
|
||||
esac
|
||||
done
|
||||
|
||||
set -o errexit
|
||||
@ -32,7 +32,7 @@ function msg() {
|
||||
|
||||
CTID=$1
|
||||
CTID_CONFIG_PATH=/etc/pve/lxc/${CTID}.conf
|
||||
cat <<EOF >> $CTID_CONFIG_PATH
|
||||
cat <<EOF >>$CTID_CONFIG_PATH
|
||||
lxc.cgroup2.devices.allow: c 10:200 rwm
|
||||
lxc.mount.entry: /dev/net/tun dev/net/tun none bind,create=file
|
||||
EOF
|
||||
|
Reference in New Issue
Block a user