|
|
|
@ -71,9 +71,8 @@ if [[ $PVE != 1 ]]; then
|
|
|
|
|
fi
|
|
|
|
|
}
|
|
|
|
|
function default_settings() {
|
|
|
|
|
echo -e "${DGN}Using ${var_os} Version: ${BGN}${var_version}${CL}"
|
|
|
|
|
echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
|
|
|
|
|
CT_TYPE="1"
|
|
|
|
|
echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
|
|
|
|
|
CT_TYPE="1"
|
|
|
|
|
echo -e "${DGN}Using Root Password: ${BGN}Automatic Login${CL}"
|
|
|
|
|
PW=""
|
|
|
|
|
echo -e "${DGN}Using Container ID: ${BGN}$NEXTID${CL}"
|
|
|
|
@ -94,21 +93,11 @@ function default_settings() {
|
|
|
|
|
GATE=""
|
|
|
|
|
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
|
|
|
|
|
MAC=""
|
|
|
|
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
|
|
|
|
VLAN=""
|
|
|
|
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
|
|
|
|
VLAN=""
|
|
|
|
|
echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}"
|
|
|
|
|
}
|
|
|
|
|
function advanced_settings() {
|
|
|
|
|
var_version=$(whiptail --title "DEBIAN VERSION" --radiolist "Choose Version" 10 58 2 \
|
|
|
|
|
"10" "Buster" OFF \
|
|
|
|
|
"11" "Bullseye" ON \
|
|
|
|
|
3>&1 1>&2 2>&3)
|
|
|
|
|
exitstatus=$?
|
|
|
|
|
if [ $exitstatus = 0 ]; then
|
|
|
|
|
echo -e "${DGN}Using Debian Version: ${BGN}$var_version${CL}"
|
|
|
|
|
else
|
|
|
|
|
exit
|
|
|
|
|
fi
|
|
|
|
|
CT_TYPE=$(whiptail --title "CONTAINER TYPE" --radiolist "Choose Type" 8 58 2 \
|
|
|
|
|
"1" "Unprivileged" ON \
|
|
|
|
|
"0" "Privileged" OFF \
|
|
|
|
@ -260,7 +249,8 @@ msg_ok "Started LXC Container"
|
|
|
|
|
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/setup/$var_install.sh)" || exit
|
|
|
|
|
IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
|
|
|
|
|
pct set $CTID -description "# ${APP} LXC
|
|
|
|
|
### https://tteck.github.io/Proxmox/"
|
|
|
|
|
### https://tteck.github.io/Proxmox/
|
|
|
|
|
<a href='https://ko-fi.com/D1D7EP4GF'><img src='https://img.shields.io/badge/☕-Buy me a coffee-red' /></a>"
|
|
|
|
|
msg_ok "Completed Successfully!\n"
|
|
|
|
|
echo -e "WGDashboard should be reachable by going to the following URL.
|
|
|
|
|
${BL}http://${IP}:10086${CL} \n"
|
|
|
|
|