mirror of
https://github.com/tteck/Proxmox.git
synced 2025-02-15 06:09:15 +01:00
parent
e7ec3d0275
commit
8e331fcbff
155 changed files with 12962 additions and 11552 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue