mirror of https://github.com/tteck/Proxmox.git
				
				
				
			add arch check (#981)
This commit is contained in:
		
							parent
							
								
									263c59944a
								
							
						
					
					
						commit
						e392cf9811
					
				| 
						 | 
					@ -69,6 +69,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
function default_settings() {
 | 
					function default_settings() {
 | 
				
			||||||
  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
					  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
				
			||||||
  CT_TYPE="1"
 | 
					  CT_TYPE="1"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -73,6 +73,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
if command -v pveversion >/dev/null 2>&1; then
 | 
					if command -v pveversion >/dev/null 2>&1; then
 | 
				
			||||||
  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
					  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
				
			||||||
    NEXTID=$(pvesh get /cluster/nextid)
 | 
					    NEXTID=$(pvesh get /cluster/nextid)
 | 
				
			||||||
| 
						 | 
					@ -350,6 +359,7 @@ exit
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
 | 
					ARCH_CHECK
 | 
				
			||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
					if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
				
			||||||
if [ "$VERB" == "yes" ]; then set -x; fi
 | 
					if [ "$VERB" == "yes" ]; then set -x; fi
 | 
				
			||||||
if [ "$CT_TYPE" == "1" ]; then
 | 
					if [ "$CT_TYPE" == "1" ]; then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -73,6 +73,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if command -v pveversion >/dev/null 2>&1; then
 | 
					if command -v pveversion >/dev/null 2>&1; then
 | 
				
			||||||
  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
					  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
				
			||||||
| 
						 | 
					@ -329,6 +338,7 @@ msg_ok "Update Successfull"
 | 
				
			||||||
exit
 | 
					exit
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
 | 
					ARCH_CHECK
 | 
				
			||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
					if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
				
			||||||
if [ "$VERB" == "yes" ]; then set -x; fi
 | 
					if [ "$VERB" == "yes" ]; then set -x; fi
 | 
				
			||||||
if [ "$CT_TYPE" == "1" ]; then
 | 
					if [ "$CT_TYPE" == "1" ]; then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -72,6 +72,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if command -v pveversion >/dev/null 2>&1; then
 | 
					if command -v pveversion >/dev/null 2>&1; then
 | 
				
			||||||
  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
					  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
				
			||||||
| 
						 | 
					@ -333,6 +342,7 @@ msg_ok "Update Successfull"
 | 
				
			||||||
exit
 | 
					exit
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
 | 
					ARCH_CHECK
 | 
				
			||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
					if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
				
			||||||
if [ "$VERB" == "yes" ]; then set -x; fi
 | 
					if [ "$VERB" == "yes" ]; then set -x; fi
 | 
				
			||||||
if [ "$CT_TYPE" == "1" ]; then
 | 
					if [ "$CT_TYPE" == "1" ]; then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -72,6 +72,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if command -v pveversion >/dev/null 2>&1; then
 | 
					if command -v pveversion >/dev/null 2>&1; then
 | 
				
			||||||
  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
					  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
				
			||||||
| 
						 | 
					@ -342,6 +351,7 @@ msg_ok "Update Successfull"
 | 
				
			||||||
exit
 | 
					exit
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
 | 
					ARCH_CHECK
 | 
				
			||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
					if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
				
			||||||
if [ "$VERB" == "yes" ]; then set -x; fi
 | 
					if [ "$VERB" == "yes" ]; then set -x; fi
 | 
				
			||||||
if [ "$CT_TYPE" == "1" ]; then
 | 
					if [ "$CT_TYPE" == "1" ]; then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -69,6 +69,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
function default_settings() {
 | 
					function default_settings() {
 | 
				
			||||||
  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
					  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
				
			||||||
  CT_TYPE="1"
 | 
					  CT_TYPE="1"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -72,6 +72,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if command -v pveversion >/dev/null 2>&1; then
 | 
					if command -v pveversion >/dev/null 2>&1; then
 | 
				
			||||||
  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
					  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
				
			||||||
| 
						 | 
					@ -333,6 +342,7 @@ msg_ok "Update Successfull"
 | 
				
			||||||
exit
 | 
					exit
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
 | 
					ARCH_CHECK
 | 
				
			||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
					if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
				
			||||||
if [ "$VERB" == "yes" ]; then set -x; fi
 | 
					if [ "$VERB" == "yes" ]; then set -x; fi
 | 
				
			||||||
if [ "$CT_TYPE" == "1" ]; then
 | 
					if [ "$CT_TYPE" == "1" ]; then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -69,6 +69,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
function default_settings() {
 | 
					function default_settings() {
 | 
				
			||||||
  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
					  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
				
			||||||
  CT_TYPE="1"
 | 
					  CT_TYPE="1"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -72,6 +72,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if command -v pveversion >/dev/null 2>&1; then
 | 
					if command -v pveversion >/dev/null 2>&1; then
 | 
				
			||||||
  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
					  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
				
			||||||
| 
						 | 
					@ -342,6 +351,7 @@ exit
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
 | 
					ARCH_CHECK
 | 
				
			||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
					if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
				
			||||||
if [ "$VERB" == "yes" ]; then set -x; fi
 | 
					if [ "$VERB" == "yes" ]; then set -x; fi
 | 
				
			||||||
if [ "$FUSE" == "yes" ]; then 
 | 
					if [ "$FUSE" == "yes" ]; then 
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -69,6 +69,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
function default_settings() {
 | 
					function default_settings() {
 | 
				
			||||||
  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
					  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
				
			||||||
  CT_TYPE="1"
 | 
					  CT_TYPE="1"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -72,6 +72,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if command -v pveversion >/dev/null 2>&1; then
 | 
					if command -v pveversion >/dev/null 2>&1; then
 | 
				
			||||||
  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
					  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
				
			||||||
| 
						 | 
					@ -332,6 +341,7 @@ msg_ok "Update Successfull"
 | 
				
			||||||
exit
 | 
					exit
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
 | 
					ARCH_CHECK
 | 
				
			||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
					if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
				
			||||||
if [ "$VERB" == "yes" ]; then set -x; fi
 | 
					if [ "$VERB" == "yes" ]; then set -x; fi
 | 
				
			||||||
if [ "$CT_TYPE" == "1" ]; then
 | 
					if [ "$CT_TYPE" == "1" ]; then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -73,6 +73,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if command -v pveversion >/dev/null 2>&1; then
 | 
					if command -v pveversion >/dev/null 2>&1; then
 | 
				
			||||||
  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} Master LXC. Proceed?" 10 58); then
 | 
					  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} Master LXC. Proceed?" 10 58); then
 | 
				
			||||||
| 
						 | 
					@ -379,6 +388,7 @@ fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
 | 
					ARCH_CHECK
 | 
				
			||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
					if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
				
			||||||
if [ "$VERB" == "yes" ]; then set -x; fi
 | 
					if [ "$VERB" == "yes" ]; then set -x; fi
 | 
				
			||||||
if [ "$CT_TYPE" == "1" ]; then
 | 
					if [ "$CT_TYPE" == "1" ]; then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -69,6 +69,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
function default_settings() {
 | 
					function default_settings() {
 | 
				
			||||||
  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
					  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
				
			||||||
  CT_TYPE="1"
 | 
					  CT_TYPE="1"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -72,6 +72,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if command -v pveversion >/dev/null 2>&1; then
 | 
					if command -v pveversion >/dev/null 2>&1; then
 | 
				
			||||||
  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
					  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
				
			||||||
| 
						 | 
					@ -333,6 +342,7 @@ msg_ok "Update Successfull"
 | 
				
			||||||
exit
 | 
					exit
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
 | 
					ARCH_CHECK
 | 
				
			||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
					if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
				
			||||||
if [ "$VERB" == "yes" ]; then set -x; fi
 | 
					if [ "$VERB" == "yes" ]; then set -x; fi
 | 
				
			||||||
if [ "$CT_TYPE" == "1" ]; then
 | 
					if [ "$CT_TYPE" == "1" ]; then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -69,6 +69,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
function default_settings() {
 | 
					function default_settings() {
 | 
				
			||||||
  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
					  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
				
			||||||
  CT_TYPE="1"
 | 
					  CT_TYPE="1"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -72,6 +72,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if command -v pveversion >/dev/null 2>&1; then
 | 
					if command -v pveversion >/dev/null 2>&1; then
 | 
				
			||||||
  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
					  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
				
			||||||
| 
						 | 
					@ -359,6 +368,7 @@ exit
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
 | 
					ARCH_CHECK
 | 
				
			||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
					if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
				
			||||||
if [ "$VERB" == "yes" ]; then set -x; fi
 | 
					if [ "$VERB" == "yes" ]; then set -x; fi
 | 
				
			||||||
if [ "$CT_TYPE" == "1" ]; then
 | 
					if [ "$CT_TYPE" == "1" ]; then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -68,6 +68,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
function default_settings() {
 | 
					function default_settings() {
 | 
				
			||||||
  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
					  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
				
			||||||
  CT_TYPE="1"
 | 
					  CT_TYPE="1"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -72,6 +72,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if command -v pveversion >/dev/null 2>&1; then
 | 
					if command -v pveversion >/dev/null 2>&1; then
 | 
				
			||||||
  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
					  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
				
			||||||
| 
						 | 
					@ -328,6 +337,7 @@ msg_ok "Updated Debian LXC"
 | 
				
			||||||
exit
 | 
					exit
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
 | 
					ARCH_CHECK
 | 
				
			||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
					if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
				
			||||||
if [ "$VERB" == "yes" ]; then set -x; fi
 | 
					if [ "$VERB" == "yes" ]; then set -x; fi
 | 
				
			||||||
if [ "$CT_TYPE" == "1" ]; then
 | 
					if [ "$CT_TYPE" == "1" ]; then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -68,6 +68,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
function default_settings() {
 | 
					function default_settings() {
 | 
				
			||||||
  echo -e "${DGN}Using ${var_os} Version: ${BGN}${var_version}${CL}"
 | 
					  echo -e "${DGN}Using ${var_os} Version: ${BGN}${var_version}${CL}"
 | 
				
			||||||
  echo -e "${DGN}Using Container Type: ${BGN}Privileged${CL}"
 | 
					  echo -e "${DGN}Using Container Type: ${BGN}Privileged${CL}"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -72,6 +72,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if command -v pveversion >/dev/null 2>&1; then
 | 
					if command -v pveversion >/dev/null 2>&1; then
 | 
				
			||||||
  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
					  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
				
			||||||
| 
						 | 
					@ -333,6 +342,7 @@ msg_ok "Update Successfull"
 | 
				
			||||||
exit
 | 
					exit
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
 | 
					ARCH_CHECK
 | 
				
			||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
					if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
				
			||||||
if [ "$VERB" == "yes" ]; then set -x; fi
 | 
					if [ "$VERB" == "yes" ]; then set -x; fi
 | 
				
			||||||
if [ "$CT_TYPE" == "1" ]; then
 | 
					if [ "$CT_TYPE" == "1" ]; then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -73,6 +73,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if command -v pveversion >/dev/null 2>&1; then
 | 
					if command -v pveversion >/dev/null 2>&1; then
 | 
				
			||||||
  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
					  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
				
			||||||
| 
						 | 
					@ -329,6 +338,7 @@ msg_ok "Updated Debian LXC"
 | 
				
			||||||
exit
 | 
					exit
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
 | 
					ARCH_CHECK
 | 
				
			||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
					if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
				
			||||||
if [ "$VERB" == "yes" ]; then set -x; fi
 | 
					if [ "$VERB" == "yes" ]; then set -x; fi
 | 
				
			||||||
if [ "$CT_TYPE" == "1" ]; then
 | 
					if [ "$CT_TYPE" == "1" ]; then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -68,6 +68,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
function default_settings() {
 | 
					function default_settings() {
 | 
				
			||||||
  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
					  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
				
			||||||
  CT_TYPE="1"
 | 
					  CT_TYPE="1"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -72,6 +72,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
if command -v pveversion >/dev/null 2>&1; then
 | 
					if command -v pveversion >/dev/null 2>&1; then
 | 
				
			||||||
  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
					  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
				
			||||||
    NEXTID=$(pvesh get /cluster/nextid)
 | 
					    NEXTID=$(pvesh get /cluster/nextid)
 | 
				
			||||||
| 
						 | 
					@ -339,6 +348,7 @@ msg_ok "Updated ${APP} LXC"
 | 
				
			||||||
exit
 | 
					exit
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
 | 
					ARCH_CHECK
 | 
				
			||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
					if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
				
			||||||
if [ "$VERB" == "yes" ]; then set -x; fi
 | 
					if [ "$VERB" == "yes" ]; then set -x; fi
 | 
				
			||||||
if [ "$FUSE" == "yes" ]; then 
 | 
					if [ "$FUSE" == "yes" ]; then 
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -69,6 +69,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
function default_settings() {
 | 
					function default_settings() {
 | 
				
			||||||
  echo -e "${DGN}Using ${var_os} Version: ${BGN}${var_version}${CL}"
 | 
					  echo -e "${DGN}Using ${var_os} Version: ${BGN}${var_version}${CL}"
 | 
				
			||||||
  echo -e "${DGN}Using Container Type: ${BGN}Privileged${CL}"
 | 
					  echo -e "${DGN}Using Container Type: ${BGN}Privileged${CL}"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -72,6 +72,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if command -v pveversion >/dev/null 2>&1; then
 | 
					if command -v pveversion >/dev/null 2>&1; then
 | 
				
			||||||
  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
					  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
				
			||||||
| 
						 | 
					@ -352,6 +361,7 @@ exit
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
 | 
					ARCH_CHECK
 | 
				
			||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
					if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
				
			||||||
if [ "$VERB" == "yes" ]; then set -x; fi
 | 
					if [ "$VERB" == "yes" ]; then set -x; fi
 | 
				
			||||||
if [ "$CT_TYPE" == "1" ]; then
 | 
					if [ "$CT_TYPE" == "1" ]; then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -69,6 +69,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
function default_settings() {
 | 
					function default_settings() {
 | 
				
			||||||
  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
					  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
				
			||||||
  CT_TYPE="1"
 | 
					  CT_TYPE="1"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -72,6 +72,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if command -v pveversion >/dev/null 2>&1; then
 | 
					if command -v pveversion >/dev/null 2>&1; then
 | 
				
			||||||
  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
					  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
				
			||||||
| 
						 | 
					@ -332,6 +341,7 @@ msg_ok "Updated ${APP} LXC"
 | 
				
			||||||
exit
 | 
					exit
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
 | 
					ARCH_CHECK
 | 
				
			||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
					if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
				
			||||||
if [ "$VERB" == "yes" ]; then set -x; fi
 | 
					if [ "$VERB" == "yes" ]; then set -x; fi
 | 
				
			||||||
if [ "$CT_TYPE" == "1" ]; then
 | 
					if [ "$CT_TYPE" == "1" ]; then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -68,6 +68,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
function default_settings() {
 | 
					function default_settings() {
 | 
				
			||||||
  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
					  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
				
			||||||
  CT_TYPE="1"
 | 
					  CT_TYPE="1"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -72,6 +72,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if command -v pveversion >/dev/null 2>&1; then
 | 
					if command -v pveversion >/dev/null 2>&1; then
 | 
				
			||||||
  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
					  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
				
			||||||
| 
						 | 
					@ -339,6 +348,7 @@ msg_ok "Update Successfull"
 | 
				
			||||||
exit
 | 
					exit
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
 | 
					ARCH_CHECK
 | 
				
			||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
					if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
				
			||||||
if [ "$VERB" == "yes" ]; then set -x; fi
 | 
					if [ "$VERB" == "yes" ]; then set -x; fi
 | 
				
			||||||
if [ "$CT_TYPE" == "1" ]; then
 | 
					if [ "$CT_TYPE" == "1" ]; then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -68,6 +68,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
function default_settings() {
 | 
					function default_settings() {
 | 
				
			||||||
  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
					  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
				
			||||||
  CT_TYPE="1"
 | 
					  CT_TYPE="1"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -72,6 +72,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if command -v pveversion >/dev/null 2>&1; then
 | 
					if command -v pveversion >/dev/null 2>&1; then
 | 
				
			||||||
  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
					  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
				
			||||||
| 
						 | 
					@ -333,6 +342,7 @@ msg_ok "Update Successfull"
 | 
				
			||||||
exit
 | 
					exit
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
 | 
					ARCH_CHECK
 | 
				
			||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
					if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
				
			||||||
if [ "$VERB" == "yes" ]; then set -x; fi
 | 
					if [ "$VERB" == "yes" ]; then set -x; fi
 | 
				
			||||||
if [ "$CT_TYPE" == "1" ]; then
 | 
					if [ "$CT_TYPE" == "1" ]; then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -68,6 +68,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
function default_settings() {
 | 
					function default_settings() {
 | 
				
			||||||
  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
					  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
				
			||||||
  CT_TYPE="1"
 | 
					  CT_TYPE="1"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -72,6 +72,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if command -v pveversion >/dev/null 2>&1; then
 | 
					if command -v pveversion >/dev/null 2>&1; then
 | 
				
			||||||
  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
					  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
				
			||||||
| 
						 | 
					@ -332,6 +341,7 @@ msg_ok "Update Successfull"
 | 
				
			||||||
exit
 | 
					exit
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
 | 
					ARCH_CHECK
 | 
				
			||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
					if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
				
			||||||
if [ "$VERB" == "yes" ]; then set -x; fi
 | 
					if [ "$VERB" == "yes" ]; then set -x; fi
 | 
				
			||||||
if [ "$CT_TYPE" == "1" ]; then
 | 
					if [ "$CT_TYPE" == "1" ]; then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -68,6 +68,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
function default_settings() {
 | 
					function default_settings() {
 | 
				
			||||||
  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
					  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
				
			||||||
  CT_TYPE="1"
 | 
					  CT_TYPE="1"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -72,6 +72,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if command -v pveversion >/dev/null 2>&1; then
 | 
					if command -v pveversion >/dev/null 2>&1; then
 | 
				
			||||||
  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
					  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
				
			||||||
| 
						 | 
					@ -412,6 +421,7 @@ msg_ok "Update Successfull"
 | 
				
			||||||
exit
 | 
					exit
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
 | 
					ARCH_CHECK
 | 
				
			||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
					if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
				
			||||||
if [ "$VERB" == "yes" ]; then set -x; fi
 | 
					if [ "$VERB" == "yes" ]; then set -x; fi
 | 
				
			||||||
if [ "$CT_TYPE" == "1" ]; then
 | 
					if [ "$CT_TYPE" == "1" ]; then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -69,6 +69,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
function default_settings() {
 | 
					function default_settings() {
 | 
				
			||||||
  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
					  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
				
			||||||
  CT_TYPE="1"
 | 
					  CT_TYPE="1"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -409,6 +409,7 @@ fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
 | 
					ARCH_CHECK
 | 
				
			||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
					if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
				
			||||||
if [ "$VERB" == "yes" ]; then set -x; fi
 | 
					if [ "$VERB" == "yes" ]; then set -x; fi
 | 
				
			||||||
if [ "$CT_TYPE" == "1" ]; then
 | 
					if [ "$CT_TYPE" == "1" ]; then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -68,6 +68,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
function default_settings() {
 | 
					function default_settings() {
 | 
				
			||||||
  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
					  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
				
			||||||
  CT_TYPE="1"
 | 
					  CT_TYPE="1"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -73,6 +73,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if command -v pveversion >/dev/null 2>&1; then
 | 
					if command -v pveversion >/dev/null 2>&1; then
 | 
				
			||||||
  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
					  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
				
			||||||
| 
						 | 
					@ -407,6 +416,7 @@ fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
 | 
					ARCH_CHECK
 | 
				
			||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
					if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
				
			||||||
if [ "$VERB" == "yes" ]; then set -x; fi
 | 
					if [ "$VERB" == "yes" ]; then set -x; fi
 | 
				
			||||||
if [ "$FUSE" == "yes" ]; then 
 | 
					if [ "$FUSE" == "yes" ]; then 
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -68,6 +68,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
function default_settings() {
 | 
					function default_settings() {
 | 
				
			||||||
  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
					  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
				
			||||||
  CT_TYPE="1"
 | 
					  CT_TYPE="1"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -72,6 +72,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if command -v pveversion >/dev/null 2>&1; then
 | 
					if command -v pveversion >/dev/null 2>&1; then
 | 
				
			||||||
  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
					  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
				
			||||||
| 
						 | 
					@ -333,6 +342,7 @@ msg_ok "Update Successfull"
 | 
				
			||||||
exit
 | 
					exit
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
 | 
					ARCH_CHECK
 | 
				
			||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
					if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
				
			||||||
if [ "$VERB" == "yes" ]; then set -x; fi
 | 
					if [ "$VERB" == "yes" ]; then set -x; fi
 | 
				
			||||||
if [ "$CT_TYPE" == "1" ]; then
 | 
					if [ "$CT_TYPE" == "1" ]; then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -69,6 +69,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
function default_settings() {
 | 
					function default_settings() {
 | 
				
			||||||
  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
					  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
				
			||||||
  CT_TYPE="1"
 | 
					  CT_TYPE="1"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -72,6 +72,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if command -v pveversion >/dev/null 2>&1; then
 | 
					if command -v pveversion >/dev/null 2>&1; then
 | 
				
			||||||
  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
					  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
				
			||||||
| 
						 | 
					@ -339,6 +348,7 @@ msg_ok "Update Successfull"
 | 
				
			||||||
exit
 | 
					exit
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
 | 
					ARCH_CHECK
 | 
				
			||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
					if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
				
			||||||
if [ "$VERB" == "yes" ]; then set -x; fi
 | 
					if [ "$VERB" == "yes" ]; then set -x; fi
 | 
				
			||||||
if [ "$CT_TYPE" == "1" ]; then
 | 
					if [ "$CT_TYPE" == "1" ]; then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -72,6 +72,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if command -v pveversion >/dev/null 2>&1; then
 | 
					if command -v pveversion >/dev/null 2>&1; then
 | 
				
			||||||
  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
					  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
				
			||||||
| 
						 | 
					@ -352,6 +361,7 @@ msg_ok "Update Successfull"
 | 
				
			||||||
exit
 | 
					exit
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
 | 
					ARCH_CHECK
 | 
				
			||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
					if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
				
			||||||
if [ "$VERB" == "yes" ]; then set -x; fi
 | 
					if [ "$VERB" == "yes" ]; then set -x; fi
 | 
				
			||||||
if [ "$CT_TYPE" == "1" ]; then
 | 
					if [ "$CT_TYPE" == "1" ]; then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -70,6 +70,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
function default_settings() {
 | 
					function default_settings() {
 | 
				
			||||||
  echo -e "${DGN}Using Container Type: ${BGN}Privileged${CL}"
 | 
					  echo -e "${DGN}Using Container Type: ${BGN}Privileged${CL}"
 | 
				
			||||||
  CT_TYPE="0"
 | 
					  CT_TYPE="0"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -73,6 +73,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if command -v pveversion >/dev/null 2>&1; then
 | 
					if command -v pveversion >/dev/null 2>&1; then
 | 
				
			||||||
  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
					  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
				
			||||||
| 
						 | 
					@ -334,6 +343,7 @@ msg_ok "Update Successfull"
 | 
				
			||||||
exit
 | 
					exit
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
 | 
					ARCH_CHECK
 | 
				
			||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
					if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
				
			||||||
if [ "$VERB" == "yes" ]; then set -x; fi
 | 
					if [ "$VERB" == "yes" ]; then set -x; fi
 | 
				
			||||||
if [ "$CT_TYPE" == "1" ]; then
 | 
					if [ "$CT_TYPE" == "1" ]; then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -68,6 +68,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
function default_settings() {
 | 
					function default_settings() {
 | 
				
			||||||
  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
					  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
				
			||||||
  CT_TYPE="1"
 | 
					  CT_TYPE="1"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -72,6 +72,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if command -v pveversion >/dev/null 2>&1; then
 | 
					if command -v pveversion >/dev/null 2>&1; then
 | 
				
			||||||
  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
					  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
				
			||||||
| 
						 | 
					@ -333,6 +342,7 @@ msg_ok "Update Successfull"
 | 
				
			||||||
exit
 | 
					exit
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
 | 
					ARCH_CHECK
 | 
				
			||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
					if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
				
			||||||
if [ "$VERB" == "yes" ]; then set -x; fi
 | 
					if [ "$VERB" == "yes" ]; then set -x; fi
 | 
				
			||||||
if [ "$CT_TYPE" == "1" ]; then
 | 
					if [ "$CT_TYPE" == "1" ]; then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -68,6 +68,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
function default_settings() {
 | 
					function default_settings() {
 | 
				
			||||||
  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
					  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
				
			||||||
  CT_TYPE="1"
 | 
					  CT_TYPE="1"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -72,6 +72,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if command -v pveversion >/dev/null 2>&1; then
 | 
					if command -v pveversion >/dev/null 2>&1; then
 | 
				
			||||||
  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
					  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
				
			||||||
| 
						 | 
					@ -333,6 +342,7 @@ msg_ok "Update Successfull"
 | 
				
			||||||
exit
 | 
					exit
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
 | 
					ARCH_CHECK
 | 
				
			||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
					if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
				
			||||||
if [ "$VERB" == "yes" ]; then set -x; fi
 | 
					if [ "$VERB" == "yes" ]; then set -x; fi
 | 
				
			||||||
if [ "$CT_TYPE" == "1" ]; then
 | 
					if [ "$CT_TYPE" == "1" ]; then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -68,6 +68,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
function default_settings() {
 | 
					function default_settings() {
 | 
				
			||||||
  echo -e "${DGN}Using ${var_os} Version: ${BGN}${var_version}${CL}"
 | 
					  echo -e "${DGN}Using ${var_os} Version: ${BGN}${var_version}${CL}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -73,6 +73,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if command -v pveversion >/dev/null 2>&1; then
 | 
					if command -v pveversion >/dev/null 2>&1; then
 | 
				
			||||||
  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
					  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
				
			||||||
| 
						 | 
					@ -342,6 +351,7 @@ msg_ok "Updated ${APP} LXC"
 | 
				
			||||||
exit
 | 
					exit
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
 | 
					ARCH_CHECK
 | 
				
			||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
					if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
				
			||||||
if [ "$VERB" == "yes" ]; then set -x; fi
 | 
					if [ "$VERB" == "yes" ]; then set -x; fi
 | 
				
			||||||
if [ "$CT_TYPE" == "1" ]; then
 | 
					if [ "$CT_TYPE" == "1" ]; then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										10
									
								
								ct/k0s-v5.sh
								
								
								
								
							
							
						
						
									
										10
									
								
								ct/k0s-v5.sh
								
								
								
								
							| 
						 | 
					@ -72,6 +72,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if command -v pveversion >/dev/null 2>&1; then
 | 
					if command -v pveversion >/dev/null 2>&1; then
 | 
				
			||||||
  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
					  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
				
			||||||
| 
						 | 
					@ -333,6 +342,7 @@ msg_ok "Update Successfull"
 | 
				
			||||||
exit
 | 
					exit
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
 | 
					ARCH_CHECK
 | 
				
			||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
					if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
				
			||||||
if [ "$VERB" == "yes" ]; then set -x; fi
 | 
					if [ "$VERB" == "yes" ]; then set -x; fi
 | 
				
			||||||
if [ "$CT_TYPE" == "1" ]; then
 | 
					if [ "$CT_TYPE" == "1" ]; then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -72,6 +72,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if command -v pveversion >/dev/null 2>&1; then
 | 
					if command -v pveversion >/dev/null 2>&1; then
 | 
				
			||||||
  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
					  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
				
			||||||
| 
						 | 
					@ -331,6 +340,7 @@ msg_ok "Updated Debian LXC"
 | 
				
			||||||
exit
 | 
					exit
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
 | 
					ARCH_CHECK
 | 
				
			||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
					if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
				
			||||||
if [ "$VERB" == "yes" ]; then set -x; fi
 | 
					if [ "$VERB" == "yes" ]; then set -x; fi
 | 
				
			||||||
if [ "$CT_TYPE" == "1" ]; then
 | 
					if [ "$CT_TYPE" == "1" ]; then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -69,6 +69,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
function default_settings() {
 | 
					function default_settings() {
 | 
				
			||||||
  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
					  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
				
			||||||
  CT_TYPE="1"
 | 
					  CT_TYPE="1"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -73,6 +73,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if command -v pveversion >/dev/null 2>&1; then
 | 
					if command -v pveversion >/dev/null 2>&1; then
 | 
				
			||||||
  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
					  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
				
			||||||
| 
						 | 
					@ -334,6 +343,7 @@ msg_ok "Update Successfull"
 | 
				
			||||||
exit
 | 
					exit
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
 | 
					ARCH_CHECK
 | 
				
			||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
					if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
				
			||||||
if [ "$VERB" == "yes" ]; then set -x; fi
 | 
					if [ "$VERB" == "yes" ]; then set -x; fi
 | 
				
			||||||
if [ "$CT_TYPE" == "1" ]; then
 | 
					if [ "$CT_TYPE" == "1" ]; then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -72,6 +72,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if command -v pveversion >/dev/null 2>&1; then
 | 
					if command -v pveversion >/dev/null 2>&1; then
 | 
				
			||||||
  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
					  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
				
			||||||
| 
						 | 
					@ -328,6 +337,7 @@ msg_ok "Updated Debian LXC"
 | 
				
			||||||
exit
 | 
					exit
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
 | 
					ARCH_CHECK
 | 
				
			||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
					if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
				
			||||||
if [ "$VERB" == "yes" ]; then set -x; fi
 | 
					if [ "$VERB" == "yes" ]; then set -x; fi
 | 
				
			||||||
if [ "$CT_TYPE" == "1" ]; then
 | 
					if [ "$CT_TYPE" == "1" ]; then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -69,6 +69,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
function default_settings() {
 | 
					function default_settings() {
 | 
				
			||||||
  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
					  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
				
			||||||
  CT_TYPE="1"
 | 
					  CT_TYPE="1"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -73,6 +73,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if command -v pveversion >/dev/null 2>&1; then
 | 
					if command -v pveversion >/dev/null 2>&1; then
 | 
				
			||||||
  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
					  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
				
			||||||
| 
						 | 
					@ -335,6 +344,7 @@ msg_ok "Update Successfull"
 | 
				
			||||||
exit
 | 
					exit
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
 | 
					ARCH_CHECK
 | 
				
			||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
					if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
				
			||||||
if [ "$VERB" == "yes" ]; then set -x; fi
 | 
					if [ "$VERB" == "yes" ]; then set -x; fi
 | 
				
			||||||
if [ "$CT_TYPE" == "1" ]; then
 | 
					if [ "$CT_TYPE" == "1" ]; then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -68,6 +68,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
function default_settings() {
 | 
					function default_settings() {
 | 
				
			||||||
  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
					  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
				
			||||||
  CT_TYPE="1"
 | 
					  CT_TYPE="1"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -72,6 +72,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if command -v pveversion >/dev/null 2>&1; then
 | 
					if command -v pveversion >/dev/null 2>&1; then
 | 
				
			||||||
  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
					  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
				
			||||||
| 
						 | 
					@ -333,6 +342,7 @@ msg_ok "Update Successfull"
 | 
				
			||||||
exit
 | 
					exit
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
 | 
					ARCH_CHECK
 | 
				
			||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
					if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
				
			||||||
if [ "$VERB" == "yes" ]; then set -x; fi
 | 
					if [ "$VERB" == "yes" ]; then set -x; fi
 | 
				
			||||||
if [ "$CT_TYPE" == "1" ]; then
 | 
					if [ "$CT_TYPE" == "1" ]; then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -68,6 +68,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
function default_settings() {
 | 
					function default_settings() {
 | 
				
			||||||
  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
					  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
				
			||||||
  CT_TYPE="1"
 | 
					  CT_TYPE="1"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -72,6 +72,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if command -v pveversion >/dev/null 2>&1; then
 | 
					if command -v pveversion >/dev/null 2>&1; then
 | 
				
			||||||
  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
					  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
				
			||||||
| 
						 | 
					@ -333,6 +342,7 @@ msg_ok "Update Successfull"
 | 
				
			||||||
exit
 | 
					exit
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
 | 
					ARCH_CHECK
 | 
				
			||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
					if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
				
			||||||
if [ "$VERB" == "yes" ]; then set -x; fi
 | 
					if [ "$VERB" == "yes" ]; then set -x; fi
 | 
				
			||||||
if [ "$CT_TYPE" == "1" ]; then
 | 
					if [ "$CT_TYPE" == "1" ]; then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -68,6 +68,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
function default_settings() {
 | 
					function default_settings() {
 | 
				
			||||||
  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
					  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
				
			||||||
  CT_TYPE="1"
 | 
					  CT_TYPE="1"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -72,6 +72,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if command -v pveversion >/dev/null 2>&1; then
 | 
					if command -v pveversion >/dev/null 2>&1; then
 | 
				
			||||||
  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
					  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
				
			||||||
| 
						 | 
					@ -332,6 +341,7 @@ msg_ok "Update Successfull"
 | 
				
			||||||
exit
 | 
					exit
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
 | 
					ARCH_CHECK
 | 
				
			||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
					if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
				
			||||||
if [ "$VERB" == "yes" ]; then set -x; fi
 | 
					if [ "$VERB" == "yes" ]; then set -x; fi
 | 
				
			||||||
if [ "$CT_TYPE" == "1" ]; then
 | 
					if [ "$CT_TYPE" == "1" ]; then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -72,6 +72,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
if command -v pveversion >/dev/null 2>&1; then
 | 
					if command -v pveversion >/dev/null 2>&1; then
 | 
				
			||||||
  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
					  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
				
			||||||
    NEXTID=$(pvesh get /cluster/nextid)
 | 
					    NEXTID=$(pvesh get /cluster/nextid)
 | 
				
			||||||
| 
						 | 
					@ -333,6 +342,7 @@ exit
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
 | 
					ARCH_CHECK
 | 
				
			||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
					if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
				
			||||||
if [ "$VERB" == "yes" ]; then set -x; fi
 | 
					if [ "$VERB" == "yes" ]; then set -x; fi
 | 
				
			||||||
if [ "$CT_TYPE" == "1" ]; then
 | 
					if [ "$CT_TYPE" == "1" ]; then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -69,6 +69,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
function default_settings() {
 | 
					function default_settings() {
 | 
				
			||||||
  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
					  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
				
			||||||
  CT_TYPE="1"
 | 
					  CT_TYPE="1"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										10
									
								
								ct/n8n-v5.sh
								
								
								
								
							
							
						
						
									
										10
									
								
								ct/n8n-v5.sh
								
								
								
								
							| 
						 | 
					@ -73,6 +73,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if command -v pveversion >/dev/null 2>&1; then
 | 
					if command -v pveversion >/dev/null 2>&1; then
 | 
				
			||||||
  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
					  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
				
			||||||
| 
						 | 
					@ -333,6 +342,7 @@ msg_ok "Update Successfull"
 | 
				
			||||||
exit
 | 
					exit
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
 | 
					ARCH_CHECK
 | 
				
			||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
					if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
				
			||||||
if [ "$VERB" == "yes" ]; then set -x; fi
 | 
					if [ "$VERB" == "yes" ]; then set -x; fi
 | 
				
			||||||
if [ "$CT_TYPE" == "1" ]; then
 | 
					if [ "$CT_TYPE" == "1" ]; then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -68,6 +68,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
function default_settings() {
 | 
					function default_settings() {
 | 
				
			||||||
  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
					  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
				
			||||||
  CT_TYPE="1"
 | 
					  CT_TYPE="1"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -72,6 +72,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if command -v pveversion >/dev/null 2>&1; then
 | 
					if command -v pveversion >/dev/null 2>&1; then
 | 
				
			||||||
  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
					  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
				
			||||||
| 
						 | 
					@ -344,6 +353,7 @@ exit
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
 | 
					ARCH_CHECK
 | 
				
			||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
					if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
				
			||||||
if [ "$VERB" == "yes" ]; then set -x; fi
 | 
					if [ "$VERB" == "yes" ]; then set -x; fi
 | 
				
			||||||
if [ "$CT_TYPE" == "1" ]; then
 | 
					if [ "$CT_TYPE" == "1" ]; then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -69,6 +69,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
function default_settings() {
 | 
					function default_settings() {
 | 
				
			||||||
  echo -e "${DGN}Using Container Type: ${BGN}Privileged${CL}"
 | 
					  echo -e "${DGN}Using Container Type: ${BGN}Privileged${CL}"
 | 
				
			||||||
  CT_TYPE="0"
 | 
					  CT_TYPE="0"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -72,6 +72,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if command -v pveversion >/dev/null 2>&1; then
 | 
					if command -v pveversion >/dev/null 2>&1; then
 | 
				
			||||||
  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
					  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
				
			||||||
| 
						 | 
					@ -333,6 +342,7 @@ msg_ok "Update Successfull"
 | 
				
			||||||
exit
 | 
					exit
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
 | 
					ARCH_CHECK
 | 
				
			||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
					if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
				
			||||||
if [ "$VERB" == "yes" ]; then set -x; fi
 | 
					if [ "$VERB" == "yes" ]; then set -x; fi
 | 
				
			||||||
if [ "$CT_TYPE" == "1" ]; then
 | 
					if [ "$CT_TYPE" == "1" ]; then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -69,6 +69,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
function default_settings() {
 | 
					function default_settings() {
 | 
				
			||||||
  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
					  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
				
			||||||
  CT_TYPE="1"
 | 
					  CT_TYPE="1"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -73,6 +73,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if command -v pveversion >/dev/null 2>&1; then
 | 
					if command -v pveversion >/dev/null 2>&1; then
 | 
				
			||||||
  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
					  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
				
			||||||
| 
						 | 
					@ -442,6 +451,7 @@ msg_ok "Update Successfull"
 | 
				
			||||||
exit
 | 
					exit
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
 | 
					ARCH_CHECK
 | 
				
			||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
					if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
				
			||||||
if [ "$VERB" == "yes" ]; then set -x; fi
 | 
					if [ "$VERB" == "yes" ]; then set -x; fi
 | 
				
			||||||
if [ "$CT_TYPE" == "1" ]; then
 | 
					if [ "$CT_TYPE" == "1" ]; then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -68,6 +68,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
function default_settings() {
 | 
					function default_settings() {
 | 
				
			||||||
  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
					  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
				
			||||||
  CT_TYPE="1"
 | 
					  CT_TYPE="1"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -72,6 +72,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if command -v pveversion >/dev/null 2>&1; then
 | 
					if command -v pveversion >/dev/null 2>&1; then
 | 
				
			||||||
  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
					  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
				
			||||||
| 
						 | 
					@ -336,6 +345,7 @@ msg_ok "Update Successfull"
 | 
				
			||||||
exit
 | 
					exit
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
 | 
					ARCH_CHECK
 | 
				
			||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
					if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
				
			||||||
if [ "$VERB" == "yes" ]; then set -x; fi
 | 
					if [ "$VERB" == "yes" ]; then set -x; fi
 | 
				
			||||||
if [ "$CT_TYPE" == "1" ]; then
 | 
					if [ "$CT_TYPE" == "1" ]; then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -68,6 +68,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
function default_settings() {
 | 
					function default_settings() {
 | 
				
			||||||
  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
					  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
				
			||||||
  CT_TYPE="1"
 | 
					  CT_TYPE="1"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -72,6 +72,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if command -v pveversion >/dev/null 2>&1; then
 | 
					if command -v pveversion >/dev/null 2>&1; then
 | 
				
			||||||
  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
					  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
				
			||||||
| 
						 | 
					@ -369,6 +378,7 @@ fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
 | 
					ARCH_CHECK
 | 
				
			||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
					if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
				
			||||||
if [ "$VERB" == "yes" ]; then set -x; fi
 | 
					if [ "$VERB" == "yes" ]; then set -x; fi
 | 
				
			||||||
if [ "$CT_TYPE" == "1" ]; then
 | 
					if [ "$CT_TYPE" == "1" ]; then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -68,6 +68,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
function default_settings() {
 | 
					function default_settings() {
 | 
				
			||||||
  echo -e "${DGN}Using ${var_os} Version: ${BGN}${var_version}${CL}"
 | 
					  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}"
 | 
					  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -72,6 +72,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if command -v pveversion >/dev/null 2>&1; then
 | 
					if command -v pveversion >/dev/null 2>&1; then
 | 
				
			||||||
  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
					  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
				
			||||||
| 
						 | 
					@ -331,6 +340,7 @@ function install_script() {
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
 | 
					ARCH_CHECK
 | 
				
			||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
					if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
				
			||||||
if [ "$VERB" == "yes" ]; then set -x; fi
 | 
					if [ "$VERB" == "yes" ]; then set -x; fi
 | 
				
			||||||
if [ "$CT_TYPE" == "1" ]; then
 | 
					if [ "$CT_TYPE" == "1" ]; then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -69,6 +69,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
function default_settings() {
 | 
					function default_settings() {
 | 
				
			||||||
  echo -e "${DGN}Using Container Type: ${BGN}Privileged${CL}"
 | 
					  echo -e "${DGN}Using Container Type: ${BGN}Privileged${CL}"
 | 
				
			||||||
  CT_TYPE="0"
 | 
					  CT_TYPE="0"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										10
									
								
								ct/omv-v5.sh
								
								
								
								
							
							
						
						
									
										10
									
								
								ct/omv-v5.sh
								
								
								
								
							| 
						 | 
					@ -73,6 +73,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if command -v pveversion >/dev/null 2>&1; then
 | 
					if command -v pveversion >/dev/null 2>&1; then
 | 
				
			||||||
  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
					  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
				
			||||||
| 
						 | 
					@ -334,6 +343,7 @@ msg_ok "Update Successfull"
 | 
				
			||||||
exit
 | 
					exit
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
 | 
					ARCH_CHECK
 | 
				
			||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
					if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
				
			||||||
if [ "$VERB" == "yes" ]; then set -x; fi
 | 
					if [ "$VERB" == "yes" ]; then set -x; fi
 | 
				
			||||||
if [ "$CT_TYPE" == "1" ]; then
 | 
					if [ "$CT_TYPE" == "1" ]; then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -69,6 +69,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
function default_settings() {
 | 
					function default_settings() {
 | 
				
			||||||
  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
					  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
				
			||||||
  CT_TYPE="1"
 | 
					  CT_TYPE="1"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -73,6 +73,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if command -v pveversion >/dev/null 2>&1; then
 | 
					if command -v pveversion >/dev/null 2>&1; then
 | 
				
			||||||
  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
					  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
				
			||||||
| 
						 | 
					@ -334,6 +343,7 @@ msg_ok "Update Successfull"
 | 
				
			||||||
exit
 | 
					exit
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
 | 
					ARCH_CHECK
 | 
				
			||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
					if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
				
			||||||
if [ "$VERB" == "yes" ]; then set -x; fi
 | 
					if [ "$VERB" == "yes" ]; then set -x; fi
 | 
				
			||||||
if [ "$CT_TYPE" == "1" ]; then
 | 
					if [ "$CT_TYPE" == "1" ]; then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -69,6 +69,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
function default_settings() {
 | 
					function default_settings() {
 | 
				
			||||||
  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
					  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
				
			||||||
  CT_TYPE="1"
 | 
					  CT_TYPE="1"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -73,6 +73,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if command -v pveversion >/dev/null 2>&1; then
 | 
					if command -v pveversion >/dev/null 2>&1; then
 | 
				
			||||||
  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
					  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
				
			||||||
| 
						 | 
					@ -401,6 +410,7 @@ fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
 | 
					ARCH_CHECK
 | 
				
			||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
					if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
				
			||||||
if [ "$VERB" == "yes" ]; then set -x; fi
 | 
					if [ "$VERB" == "yes" ]; then set -x; fi
 | 
				
			||||||
if [ "$CT_TYPE" == "1" ]; then
 | 
					if [ "$CT_TYPE" == "1" ]; then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -68,6 +68,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
function default_settings() {
 | 
					function default_settings() {
 | 
				
			||||||
  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
					  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
				
			||||||
  CT_TYPE="1"
 | 
					  CT_TYPE="1"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -72,6 +72,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if command -v pveversion >/dev/null 2>&1; then
 | 
					if command -v pveversion >/dev/null 2>&1; then
 | 
				
			||||||
  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
					  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
				
			||||||
| 
						 | 
					@ -354,6 +363,7 @@ msg_ok "Update Successful"
 | 
				
			||||||
exit
 | 
					exit
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
 | 
					ARCH_CHECK
 | 
				
			||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
					if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
				
			||||||
if [ "$VERB" == "yes" ]; then set -x; fi
 | 
					if [ "$VERB" == "yes" ]; then set -x; fi
 | 
				
			||||||
if [ "$CT_TYPE" == "1" ]; then
 | 
					if [ "$CT_TYPE" == "1" ]; then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -68,6 +68,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
function default_settings() {
 | 
					function default_settings() {
 | 
				
			||||||
  echo -e "${DGN}Using Container Type: ${BGN}Privileged${CL}"
 | 
					  echo -e "${DGN}Using Container Type: ${BGN}Privileged${CL}"
 | 
				
			||||||
  CT_TYPE="0"
 | 
					  CT_TYPE="0"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -72,6 +72,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if command -v pveversion >/dev/null 2>&1; then
 | 
					if command -v pveversion >/dev/null 2>&1; then
 | 
				
			||||||
  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
					  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
				
			||||||
| 
						 | 
					@ -333,6 +342,7 @@ msg_ok "Update Successfull"
 | 
				
			||||||
exit
 | 
					exit
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
 | 
					ARCH_CHECK
 | 
				
			||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
					if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
				
			||||||
if [ "$VERB" == "yes" ]; then set -x; fi
 | 
					if [ "$VERB" == "yes" ]; then set -x; fi
 | 
				
			||||||
if [ "$CT_TYPE" == "1" ]; then
 | 
					if [ "$CT_TYPE" == "1" ]; then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -68,6 +68,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
function default_settings() {
 | 
					function default_settings() {
 | 
				
			||||||
  echo -e "${DGN}Using ${var_os} Version: ${BGN}${var_version}${CL}"
 | 
					  echo -e "${DGN}Using ${var_os} Version: ${BGN}${var_version}${CL}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -72,6 +72,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if command -v pveversion >/dev/null 2>&1; then
 | 
					if command -v pveversion >/dev/null 2>&1; then
 | 
				
			||||||
  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
					  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
				
			||||||
| 
						 | 
					@ -352,6 +361,7 @@ exit
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
 | 
					ARCH_CHECK
 | 
				
			||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
					if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
				
			||||||
if [ "$VERB" == "yes" ]; then set -x; fi
 | 
					if [ "$VERB" == "yes" ]; then set -x; fi
 | 
				
			||||||
if [ "$CT_TYPE" == "1" ]; then
 | 
					if [ "$CT_TYPE" == "1" ]; then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -72,6 +72,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
function default_settings() {
 | 
					function default_settings() {
 | 
				
			||||||
  echo -e "${DGN}Using Container Type: ${BGN}Privileged${CL}"
 | 
					  echo -e "${DGN}Using Container Type: ${BGN}Privileged${CL}"
 | 
				
			||||||
  CT_TYPE="0"
 | 
					  CT_TYPE="0"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -76,6 +76,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if command -v pveversion >/dev/null 2>&1; then
 | 
					if command -v pveversion >/dev/null 2>&1; then
 | 
				
			||||||
  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
					  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
				
			||||||
| 
						 | 
					@ -383,6 +392,7 @@ fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
 | 
					ARCH_CHECK
 | 
				
			||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
					if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
				
			||||||
if [ "$VERB" == "yes" ]; then set -x; fi
 | 
					if [ "$VERB" == "yes" ]; then set -x; fi
 | 
				
			||||||
if [ "$CT_TYPE" == "1" ]; then
 | 
					if [ "$CT_TYPE" == "1" ]; then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -72,6 +72,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if command -v pveversion >/dev/null 2>&1; then
 | 
					if command -v pveversion >/dev/null 2>&1; then
 | 
				
			||||||
  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
					  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
				
			||||||
| 
						 | 
					@ -333,6 +342,7 @@ msg_ok "Update Successfull"
 | 
				
			||||||
exit
 | 
					exit
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
 | 
					ARCH_CHECK
 | 
				
			||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
					if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
				
			||||||
if [ "$VERB" == "yes" ]; then set -x; fi
 | 
					if [ "$VERB" == "yes" ]; then set -x; fi
 | 
				
			||||||
if [ "$CT_TYPE" == "1" ]; then
 | 
					if [ "$CT_TYPE" == "1" ]; then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -69,6 +69,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
function default_settings() {
 | 
					function default_settings() {
 | 
				
			||||||
  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
					  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
				
			||||||
  CT_TYPE="1"
 | 
					  CT_TYPE="1"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -72,6 +72,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if command -v pveversion >/dev/null 2>&1; then
 | 
					if command -v pveversion >/dev/null 2>&1; then
 | 
				
			||||||
  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
					  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
				
			||||||
| 
						 | 
					@ -333,6 +342,7 @@ msg_ok "Update Successfull"
 | 
				
			||||||
exit
 | 
					exit
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
 | 
					ARCH_CHECK
 | 
				
			||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
					if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
				
			||||||
if [ "$VERB" == "yes" ]; then set -x; fi
 | 
					if [ "$VERB" == "yes" ]; then set -x; fi
 | 
				
			||||||
if [ "$CT_TYPE" == "1" ]; then
 | 
					if [ "$CT_TYPE" == "1" ]; then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -68,6 +68,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
function default_settings() {
 | 
					function default_settings() {
 | 
				
			||||||
  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
					  echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
 | 
				
			||||||
  CT_TYPE="1"
 | 
					  CT_TYPE="1"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -72,6 +72,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if command -v pveversion >/dev/null 2>&1; then
 | 
					if command -v pveversion >/dev/null 2>&1; then
 | 
				
			||||||
  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
					  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
				
			||||||
| 
						 | 
					@ -333,6 +342,7 @@ msg_ok "Update Successfull"
 | 
				
			||||||
exit
 | 
					exit
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
 | 
					ARCH_CHECK
 | 
				
			||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
					if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
				
			||||||
if [ "$VERB" == "yes" ]; then set -x; fi
 | 
					if [ "$VERB" == "yes" ]; then set -x; fi
 | 
				
			||||||
if [ "$CT_TYPE" == "1" ]; then
 | 
					if [ "$CT_TYPE" == "1" ]; then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -72,6 +72,15 @@ function PVE_CHECK() {
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					function ARCH_CHECK() {
 | 
				
			||||||
 | 
					  ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
 | 
					  if [[ "$ARCH" != "amd64" ]]; then
 | 
				
			||||||
 | 
					    echo -e "\n ❌  This script will not work with PiMox! \n"
 | 
				
			||||||
 | 
					    echo -e "Exiting..."
 | 
				
			||||||
 | 
					    sleep 2
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if command -v pveversion >/dev/null 2>&1; then
 | 
					if command -v pveversion >/dev/null 2>&1; then
 | 
				
			||||||
  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
					  if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
 | 
				
			||||||
| 
						 | 
					@ -328,6 +337,7 @@ msg_ok "Updated Debian LXC"
 | 
				
			||||||
exit
 | 
					exit
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
 | 
					ARCH_CHECK
 | 
				
			||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
					if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 | 
				
			||||||
if [ "$VERB" == "yes" ]; then set -x; fi
 | 
					if [ "$VERB" == "yes" ]; then set -x; fi
 | 
				
			||||||
if [ "$CT_TYPE" == "1" ]; then
 | 
					if [ "$CT_TYPE" == "1" ]; then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
Some files were not shown because too many files have changed in this diff Show More
		Loading…
	
		Reference in New Issue