diff --git a/ct/adguard-v4.sh b/ct/adguard-v4.sh index 1c50582a2..a21350c56 100644 --- a/ct/adguard-v4.sh +++ b/ct/adguard-v4.sh @@ -100,6 +100,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -249,6 +251,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -271,6 +280,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -278,6 +288,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/alpine-v4.sh b/ct/alpine-v4.sh index dd3a7d6d4..74ca977fd 100644 --- a/ct/alpine-v4.sh +++ b/ct/alpine-v4.sh @@ -100,6 +100,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -245,6 +247,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -267,6 +276,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -274,6 +284,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/archlinux-v4.sh b/ct/archlinux-v4.sh index 6c8c294ab..0c88369eb 100644 --- a/ct/archlinux-v4.sh +++ b/ct/archlinux-v4.sh @@ -99,6 +99,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -248,6 +250,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -270,6 +279,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -277,6 +287,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/blocky-v4.sh b/ct/blocky-v4.sh index 0f6ebcad8..07f587769 100644 --- a/ct/blocky-v4.sh +++ b/ct/blocky-v4.sh @@ -100,6 +100,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -249,6 +251,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -271,6 +280,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -278,6 +288,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/casaos-v4.sh b/ct/casaos-v4.sh index 9a2a9deef..63819aa5e 100644 --- a/ct/casaos-v4.sh +++ b/ct/casaos-v4.sh @@ -100,6 +100,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -249,6 +251,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -271,6 +280,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -278,6 +288,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/changedetection-v4.sh b/ct/changedetection-v4.sh index 13f64d237..0580a2cc6 100644 --- a/ct/changedetection-v4.sh +++ b/ct/changedetection-v4.sh @@ -100,6 +100,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -249,6 +251,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -271,6 +280,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -278,6 +288,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/create_lxc.sh b/ct/create_lxc.sh index 43aea5388..c0af30d99 100644 --- a/ct/create_lxc.sh +++ b/ct/create_lxc.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi YW=$(echo "\033[33m") BL=$(echo "\033[36m") RD=$(echo "\033[01;31m") diff --git a/ct/daemonsync-v4.sh b/ct/daemonsync-v4.sh index ce51efa05..c9c19e9b6 100644 --- a/ct/daemonsync-v4.sh +++ b/ct/daemonsync-v4.sh @@ -100,6 +100,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -249,6 +251,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -271,6 +280,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -278,6 +288,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/dashy-v4.sh b/ct/dashy-v4.sh index 43a9ce299..5aac4c228 100644 --- a/ct/dashy-v4.sh +++ b/ct/dashy-v4.sh @@ -100,6 +100,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -249,6 +251,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -271,6 +280,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -278,6 +288,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/debian-v4.sh b/ct/debian-v4.sh index 457e5bce6..c70d40dcc 100644 --- a/ct/debian-v4.sh +++ b/ct/debian-v4.sh @@ -99,6 +99,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -248,6 +250,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -270,6 +279,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -277,6 +287,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/deconz-v4.sh b/ct/deconz-v4.sh index f3aa35f42..83debc14d 100644 --- a/ct/deconz-v4.sh +++ b/ct/deconz-v4.sh @@ -100,6 +100,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -249,6 +251,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -271,6 +280,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -278,6 +288,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/docker-v4.sh b/ct/docker-v4.sh index aa82aafca..1a6d2d506 100644 --- a/ct/docker-v4.sh +++ b/ct/docker-v4.sh @@ -99,6 +99,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -248,6 +250,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -270,6 +279,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -277,6 +287,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/emby-v4.sh b/ct/emby-v4.sh index d8abcd6e8..6ad8344e6 100644 --- a/ct/emby-v4.sh +++ b/ct/emby-v4.sh @@ -101,6 +101,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -258,6 +260,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -280,6 +289,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -287,6 +297,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/emqx-v4.sh b/ct/emqx-v4.sh index 6dbffae3c..ee6213754 100644 --- a/ct/emqx-v4.sh +++ b/ct/emqx-v4.sh @@ -100,6 +100,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -249,6 +251,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -271,6 +280,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -278,6 +288,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/esphome-v4.sh b/ct/esphome-v4.sh index 45d2f651f..d7e7350d6 100644 --- a/ct/esphome-v4.sh +++ b/ct/esphome-v4.sh @@ -99,6 +99,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -248,6 +250,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -270,6 +279,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -277,6 +287,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/grafana-v4.sh b/ct/grafana-v4.sh index 0a096cb50..68a8488d8 100644 --- a/ct/grafana-v4.sh +++ b/ct/grafana-v4.sh @@ -99,6 +99,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -248,6 +250,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -270,6 +279,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -277,6 +287,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/grocy-v4.sh b/ct/grocy-v4.sh index 3aa8b8a2d..7b4fae30c 100644 --- a/ct/grocy-v4.sh +++ b/ct/grocy-v4.sh @@ -99,6 +99,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -248,6 +250,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -270,6 +279,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -277,6 +287,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/heimdalldashboard-v4.sh b/ct/heimdalldashboard-v4.sh index 1d20b4ab9..410d50faa 100644 --- a/ct/heimdalldashboard-v4.sh +++ b/ct/heimdalldashboard-v4.sh @@ -99,6 +99,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -248,6 +250,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -270,6 +279,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -277,6 +287,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/homeassistant-core-v4.sh b/ct/homeassistant-core-v4.sh index af70dd122..df5f24085 100644 --- a/ct/homeassistant-core-v4.sh +++ b/ct/homeassistant-core-v4.sh @@ -100,6 +100,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -249,6 +251,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -271,6 +280,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -278,6 +288,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/homeassistant-v4.sh b/ct/homeassistant-v4.sh index b3c21663d..a4f50ad8a 100644 --- a/ct/homeassistant-v4.sh +++ b/ct/homeassistant-v4.sh @@ -99,6 +99,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -248,6 +250,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -270,6 +279,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -277,6 +287,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/homebridge-v4.sh b/ct/homebridge-v4.sh index 604e87565..c1305e203 100644 --- a/ct/homebridge-v4.sh +++ b/ct/homebridge-v4.sh @@ -99,6 +99,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -248,6 +250,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -270,6 +279,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -277,6 +287,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/homepage-v4.sh b/ct/homepage-v4.sh index e0079f569..95df4b449 100644 --- a/ct/homepage-v4.sh +++ b/ct/homepage-v4.sh @@ -100,6 +100,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -249,6 +251,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -271,6 +280,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -278,6 +288,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/hyperion-v4.sh b/ct/hyperion-v4.sh index 754916640..a47466312 100644 --- a/ct/hyperion-v4.sh +++ b/ct/hyperion-v4.sh @@ -101,6 +101,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -250,6 +252,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -272,6 +281,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -279,6 +289,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/influxdb-v4.sh b/ct/influxdb-v4.sh index 544c08a68..9ba3a22ba 100644 --- a/ct/influxdb-v4.sh +++ b/ct/influxdb-v4.sh @@ -99,6 +99,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -248,6 +250,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -270,6 +279,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -277,6 +287,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/iobroker-v4.sh b/ct/iobroker-v4.sh index bbea22229..7e91f90f1 100644 --- a/ct/iobroker-v4.sh +++ b/ct/iobroker-v4.sh @@ -99,6 +99,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -248,6 +250,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -270,6 +279,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -277,6 +287,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/jellyfin-v4.sh b/ct/jellyfin-v4.sh index a0c417d02..44a18a47b 100644 --- a/ct/jellyfin-v4.sh +++ b/ct/jellyfin-v4.sh @@ -101,6 +101,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -258,6 +260,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -280,6 +289,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -287,6 +297,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/keycloak-v4.sh b/ct/keycloak-v4.sh index 5ab128f34..f145d045f 100644 --- a/ct/keycloak-v4.sh +++ b/ct/keycloak-v4.sh @@ -100,6 +100,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -249,6 +251,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -271,6 +280,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -278,6 +288,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/magicmirror-v4.sh b/ct/magicmirror-v4.sh index 146868973..282908473 100644 --- a/ct/magicmirror-v4.sh +++ b/ct/magicmirror-v4.sh @@ -100,6 +100,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -249,6 +251,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -271,6 +280,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -278,6 +288,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/mariadb-v4.sh b/ct/mariadb-v4.sh index ba1848bc8..780ba45c7 100644 --- a/ct/mariadb-v4.sh +++ b/ct/mariadb-v4.sh @@ -99,6 +99,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -248,6 +250,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -270,6 +279,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -277,6 +287,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/meshcentral-v4.sh b/ct/meshcentral-v4.sh index 268be5253..f91f91d3c 100644 --- a/ct/meshcentral-v4.sh +++ b/ct/meshcentral-v4.sh @@ -99,6 +99,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -248,6 +250,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -270,6 +279,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -277,6 +287,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/motioneye-v4.sh b/ct/motioneye-v4.sh index 70798f151..78d60c7b7 100644 --- a/ct/motioneye-v4.sh +++ b/ct/motioneye-v4.sh @@ -99,6 +99,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -248,6 +250,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -270,6 +279,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -277,6 +287,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/mqtt-v4.sh b/ct/mqtt-v4.sh index afcb6892c..84801204d 100644 --- a/ct/mqtt-v4.sh +++ b/ct/mqtt-v4.sh @@ -99,6 +99,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -224,6 +226,13 @@ fi echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -246,13 +255,15 @@ fi } clear start_script -if [ "$CT_TYPE" == "1" ]; then - FEATURES="nesting=1,keyctl=1" - else - FEATURES="nesting=1" - fi +if [ "$VERB" == "yes" ]; then set -x; fi +if [ "$CT_TYPE" == "1" ]; then + FEATURES="nesting=1,keyctl=1" +else + FEATURES="nesting=1" +fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/n8n-v4.sh b/ct/n8n-v4.sh index e864e7141..c7b0cc56c 100644 --- a/ct/n8n-v4.sh +++ b/ct/n8n-v4.sh @@ -100,6 +100,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -249,6 +251,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -271,6 +280,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -278,6 +288,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/navidrome-v4.sh b/ct/navidrome-v4.sh index e274d0cfa..750767a0a 100644 --- a/ct/navidrome-v4.sh +++ b/ct/navidrome-v4.sh @@ -99,6 +99,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -248,6 +250,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -270,6 +279,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -277,6 +287,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/nextcloudpi-v4.sh b/ct/nextcloudpi-v4.sh index e5bb4d6ff..0b119e713 100644 --- a/ct/nextcloudpi-v4.sh +++ b/ct/nextcloudpi-v4.sh @@ -100,6 +100,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -249,6 +251,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -271,6 +280,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -278,6 +288,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/nginx-proxy-manager-v4.sh b/ct/nginx-proxy-manager-v4.sh index f6ec77d7b..c12d14d10 100644 --- a/ct/nginx-proxy-manager-v4.sh +++ b/ct/nginx-proxy-manager-v4.sh @@ -100,6 +100,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -249,6 +251,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -271,6 +280,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -278,6 +288,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/nocodb-v4.sh b/ct/nocodb-v4.sh index 8a7680e68..2ca00f979 100644 --- a/ct/nocodb-v4.sh +++ b/ct/nocodb-v4.sh @@ -99,6 +99,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -248,6 +250,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -270,6 +279,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -277,6 +287,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/node-red-v4.sh b/ct/node-red-v4.sh index 87bf78e55..97a947557 100644 --- a/ct/node-red-v4.sh +++ b/ct/node-red-v4.sh @@ -99,6 +99,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -248,6 +250,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -270,6 +279,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -277,6 +287,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/omada-v4.sh b/ct/omada-v4.sh index 5ced92468..099deba74 100644 --- a/ct/omada-v4.sh +++ b/ct/omada-v4.sh @@ -100,6 +100,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -257,6 +259,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -279,6 +288,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -286,6 +296,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/omv-v4.sh b/ct/omv-v4.sh index 9be51f0bd..a649a28c7 100644 --- a/ct/omv-v4.sh +++ b/ct/omv-v4.sh @@ -100,6 +100,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -249,6 +251,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -271,6 +280,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -278,6 +288,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/openhab-v4.sh b/ct/openhab-v4.sh index 0ce75e466..dc559dc3b 100644 --- a/ct/openhab-v4.sh +++ b/ct/openhab-v4.sh @@ -100,6 +100,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -249,6 +251,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -271,6 +280,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -278,6 +288,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/paperless-ngx-v4.sh b/ct/paperless-ngx-v4.sh index 3b5247e85..37c347a79 100644 --- a/ct/paperless-ngx-v4.sh +++ b/ct/paperless-ngx-v4.sh @@ -100,6 +100,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -249,6 +251,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -271,6 +280,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -278,6 +288,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/photoprism-v4.sh b/ct/photoprism-v4.sh index fad367648..5f4a58278 100644 --- a/ct/photoprism-v4.sh +++ b/ct/photoprism-v4.sh @@ -99,6 +99,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -248,6 +250,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -270,6 +279,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -277,6 +287,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/pihole-v4.sh b/ct/pihole-v4.sh index a34e8eb56..01d25fff4 100644 --- a/ct/pihole-v4.sh +++ b/ct/pihole-v4.sh @@ -99,6 +99,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -248,6 +250,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -270,6 +279,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -277,6 +287,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/plex-v4.sh b/ct/plex-v4.sh index cfcd96966..a490c9385 100644 --- a/ct/plex-v4.sh +++ b/ct/plex-v4.sh @@ -101,6 +101,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -258,6 +260,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -280,6 +289,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -287,6 +297,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/podman-homeassistant-v4.sh b/ct/podman-homeassistant-v4.sh index c5944bef3..e4d22054f 100644 --- a/ct/podman-homeassistant-v4.sh +++ b/ct/podman-homeassistant-v4.sh @@ -103,6 +103,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -252,6 +254,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -274,6 +283,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -281,6 +291,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/postgresql-v4.sh b/ct/postgresql-v4.sh index a3c82982c..aaa68b00a 100644 --- a/ct/postgresql-v4.sh +++ b/ct/postgresql-v4.sh @@ -100,6 +100,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -249,6 +251,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -271,6 +280,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -278,6 +288,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/prometheus-v4.sh b/ct/prometheus-v4.sh index a792708e5..6bb1b9db3 100644 --- a/ct/prometheus-v4.sh +++ b/ct/prometheus-v4.sh @@ -99,6 +99,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -248,6 +250,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -270,6 +279,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -277,6 +287,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/scrypted-v4.sh b/ct/scrypted-v4.sh index cc23caee4..94f598d1b 100644 --- a/ct/scrypted-v4.sh +++ b/ct/scrypted-v4.sh @@ -100,6 +100,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -249,6 +251,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -271,6 +280,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -278,6 +288,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/shinobi-v4.sh b/ct/shinobi-v4.sh index 265e7d236..cfb70935a 100644 --- a/ct/shinobi-v4.sh +++ b/ct/shinobi-v4.sh @@ -101,6 +101,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -258,6 +260,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -280,6 +289,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -287,6 +297,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/syncthing-v4.sh b/ct/syncthing-v4.sh index c741c5274..6a5e0de70 100644 --- a/ct/syncthing-v4.sh +++ b/ct/syncthing-v4.sh @@ -101,6 +101,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -250,6 +252,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -272,6 +281,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -279,6 +289,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/technitiumdns-v4.sh b/ct/technitiumdns-v4.sh index ce8c822a0..644ddd780 100644 --- a/ct/technitiumdns-v4.sh +++ b/ct/technitiumdns-v4.sh @@ -99,6 +99,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -248,6 +250,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -270,6 +279,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -277,6 +287,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/trilium-v4.sh b/ct/trilium-v4.sh index c7b08580c..dbdf65858 100644 --- a/ct/trilium-v4.sh +++ b/ct/trilium-v4.sh @@ -100,6 +100,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -249,6 +251,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -271,6 +280,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -278,6 +288,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/ubuntu-v4.sh b/ct/ubuntu-v4.sh index 13d9fa3dd..44f3d233c 100644 --- a/ct/ubuntu-v4.sh +++ b/ct/ubuntu-v4.sh @@ -100,6 +100,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -257,6 +259,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -279,6 +288,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -286,6 +296,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/umbrel-v4.sh b/ct/umbrel-v4.sh index 1df43db6c..391b45781 100644 --- a/ct/umbrel-v4.sh +++ b/ct/umbrel-v4.sh @@ -100,6 +100,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -249,6 +251,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -271,6 +280,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -278,6 +288,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/unifi-v4.sh b/ct/unifi-v4.sh index 329e33268..3d60590d3 100644 --- a/ct/unifi-v4.sh +++ b/ct/unifi-v4.sh @@ -99,6 +99,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -248,6 +250,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -270,6 +279,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -277,6 +287,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/uptimekuma-v4.sh b/ct/uptimekuma-v4.sh index d49cf8ccf..b31b279f0 100644 --- a/ct/uptimekuma-v4.sh +++ b/ct/uptimekuma-v4.sh @@ -100,6 +100,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -249,6 +251,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -271,6 +280,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -278,6 +288,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/vaultwarden-v4.sh b/ct/vaultwarden-v4.sh index ecf7d10fd..9e5ffc706 100644 --- a/ct/vaultwarden-v4.sh +++ b/ct/vaultwarden-v4.sh @@ -99,6 +99,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -248,6 +250,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -270,6 +279,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -277,6 +287,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/whoogle-v4.sh b/ct/whoogle-v4.sh index 3457e95ec..a910806cf 100644 --- a/ct/whoogle-v4.sh +++ b/ct/whoogle-v4.sh @@ -99,6 +99,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -248,6 +250,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -270,6 +279,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -277,6 +287,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/wikijs-v4.sh b/ct/wikijs-v4.sh index 13a5dccd7..54b25b7b5 100644 --- a/ct/wikijs-v4.sh +++ b/ct/wikijs-v4.sh @@ -100,6 +100,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -249,6 +251,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -271,6 +280,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -278,6 +288,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/wireguard-v4.sh b/ct/wireguard-v4.sh index da10e317c..946b6c000 100644 --- a/ct/wireguard-v4.sh +++ b/ct/wireguard-v4.sh @@ -101,6 +101,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -250,6 +252,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -272,6 +281,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -279,6 +289,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/zigbee2mqtt-v4.sh b/ct/zigbee2mqtt-v4.sh index 5d7260618..1d5e0bc8e 100644 --- a/ct/zigbee2mqtt-v4.sh +++ b/ct/zigbee2mqtt-v4.sh @@ -100,6 +100,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -249,6 +251,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -271,6 +280,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -278,6 +288,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/ct/zwave-js-ui-v4.sh b/ct/zwave-js-ui-v4.sh index d477aefb0..46aa99ba7 100644 --- a/ct/zwave-js-ui-v4.sh +++ b/ct/zwave-js-ui-v4.sh @@ -100,6 +100,8 @@ function default_settings() { VLAN="" echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}" } function advanced_settings() { @@ -249,6 +251,13 @@ function advanced_settings() { echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}" SSH="no" fi + if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then + echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}" + VERB="yes" + else + echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}" + VERB="no" + fi if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}" else @@ -271,6 +280,7 @@ function start_script() { } clear start_script +if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then FEATURES="nesting=1,keyctl=1" else @@ -278,6 +288,7 @@ else fi TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +export VERBOSE=$VERB export SSH_ROOT=${SSH} export CTID=$CT_ID export PCT_OSTYPE=$var_os diff --git a/setup/adguard-install.sh b/setup/adguard-install.sh index bfaf8b83f..ec37c2c97 100644 --- a/setup/adguard-install.sh +++ b/setup/adguard-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") diff --git a/setup/blocky-install.sh b/setup/blocky-install.sh index 620c57a23..ff3ad10ce 100644 --- a/setup/blocky-install.sh +++ b/setup/blocky-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") diff --git a/setup/casaos-install.sh b/setup/casaos-install.sh index 23ea0f98a..d2f383f94 100644 --- a/setup/casaos-install.sh +++ b/setup/casaos-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") diff --git a/setup/changedetection-install.sh b/setup/changedetection-install.sh index 923ca216c..8fe7d7fd7 100644 --- a/setup/changedetection-install.sh +++ b/setup/changedetection-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") diff --git a/setup/daemonsync-install.sh b/setup/daemonsync-install.sh index e70c99436..3936e3780 100644 --- a/setup/daemonsync-install.sh +++ b/setup/daemonsync-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") diff --git a/setup/dashy-install.sh b/setup/dashy-install.sh index 677b49138..72155a18b 100644 --- a/setup/dashy-install.sh +++ b/setup/dashy-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") diff --git a/setup/debian-install.sh b/setup/debian-install.sh index 124a89846..dca29c9b2 100644 --- a/setup/debian-install.sh +++ b/setup/debian-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") diff --git a/setup/deconz-install.sh b/setup/deconz-install.sh index 7c5f1b080..cef9767d8 100644 --- a/setup/deconz-install.sh +++ b/setup/deconz-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") diff --git a/setup/docker-install.sh b/setup/docker-install.sh index b455fbbc5..8587b39ba 100644 --- a/setup/docker-install.sh +++ b/setup/docker-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") diff --git a/setup/emby-install.sh b/setup/emby-install.sh index 979f19552..fcd7396c2 100644 --- a/setup/emby-install.sh +++ b/setup/emby-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") diff --git a/setup/emqx-install.sh b/setup/emqx-install.sh index e73f77770..e40bed9c1 100644 --- a/setup/emqx-install.sh +++ b/setup/emqx-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") diff --git a/setup/esphome-install.sh b/setup/esphome-install.sh index 91092358d..d624ad844 100644 --- a/setup/esphome-install.sh +++ b/setup/esphome-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") diff --git a/setup/grafana-install.sh b/setup/grafana-install.sh index c912e4727..4235bd26e 100644 --- a/setup/grafana-install.sh +++ b/setup/grafana-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") diff --git a/setup/grocy-install.sh b/setup/grocy-install.sh index 8740d66fe..cab299fb1 100644 --- a/setup/grocy-install.sh +++ b/setup/grocy-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") diff --git a/setup/heimdalldashboard-install.sh b/setup/heimdalldashboard-install.sh index ff8cc3864..c9ef0bd7f 100644 --- a/setup/heimdalldashboard-install.sh +++ b/setup/heimdalldashboard-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") diff --git a/setup/homeassistant-core-install.sh b/setup/homeassistant-core-install.sh index d49b08f23..f5ff284ca 100644 --- a/setup/homeassistant-core-install.sh +++ b/setup/homeassistant-core-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") diff --git a/setup/homeassistant-install.sh b/setup/homeassistant-install.sh index 11af74121..1c42053cb 100644 --- a/setup/homeassistant-install.sh +++ b/setup/homeassistant-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") diff --git a/setup/homebridge-install.sh b/setup/homebridge-install.sh index 8ce65cf0e..1841a555b 100644 --- a/setup/homebridge-install.sh +++ b/setup/homebridge-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") diff --git a/setup/homepage-install.sh b/setup/homepage-install.sh index 0f60d5b14..c48b139b0 100644 --- a/setup/homepage-install.sh +++ b/setup/homepage-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") diff --git a/setup/hyperion-install.sh b/setup/hyperion-install.sh index 80c5de265..ee8a3c9fc 100644 --- a/setup/hyperion-install.sh +++ b/setup/hyperion-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") diff --git a/setup/influxdb-install.sh b/setup/influxdb-install.sh index 07c40091d..83c6199ed 100644 --- a/setup/influxdb-install.sh +++ b/setup/influxdb-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") diff --git a/setup/iobroker-install.sh b/setup/iobroker-install.sh index 5c2580db9..3bcb25709 100644 --- a/setup/iobroker-install.sh +++ b/setup/iobroker-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") diff --git a/setup/jellyfin-install.sh b/setup/jellyfin-install.sh index 176dc5fc6..d70f29ceb 100644 --- a/setup/jellyfin-install.sh +++ b/setup/jellyfin-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") diff --git a/setup/keycloak-install.sh b/setup/keycloak-install.sh index 6e412b6df..00128983e 100644 --- a/setup/keycloak-install.sh +++ b/setup/keycloak-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") diff --git a/setup/magicmirror-install.sh b/setup/magicmirror-install.sh index 1017de121..71bd489ac 100644 --- a/setup/magicmirror-install.sh +++ b/setup/magicmirror-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") diff --git a/setup/mariadb-install.sh b/setup/mariadb-install.sh index 6d0ad6083..12eeba977 100644 --- a/setup/mariadb-install.sh +++ b/setup/mariadb-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") diff --git a/setup/meshcentral-install.sh b/setup/meshcentral-install.sh index 114424d5d..77233afc6 100644 --- a/setup/meshcentral-install.sh +++ b/setup/meshcentral-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") diff --git a/setup/motioneye-install.sh b/setup/motioneye-install.sh index b75283353..2d116c018 100644 --- a/setup/motioneye-install.sh +++ b/setup/motioneye-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") diff --git a/setup/mqtt-install.sh b/setup/mqtt-install.sh index b0d2406d2..70f9efeb4 100644 --- a/setup/mqtt-install.sh +++ b/setup/mqtt-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") diff --git a/setup/n8n-install.sh b/setup/n8n-install.sh index a6689a66b..1cca46113 100644 --- a/setup/n8n-install.sh +++ b/setup/n8n-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") diff --git a/setup/navidrome-install.sh b/setup/navidrome-install.sh index e08f08428..763d53530 100644 --- a/setup/navidrome-install.sh +++ b/setup/navidrome-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") diff --git a/setup/nextcloudpi-install.sh b/setup/nextcloudpi-install.sh index a7a032991..ec0729d7e 100644 --- a/setup/nextcloudpi-install.sh +++ b/setup/nextcloudpi-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") diff --git a/setup/nginx-proxy-manager-install.sh b/setup/nginx-proxy-manager-install.sh index f60e548d7..88c11cddf 100644 --- a/setup/nginx-proxy-manager-install.sh +++ b/setup/nginx-proxy-manager-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") diff --git a/setup/nocodb-install.sh b/setup/nocodb-install.sh index 9244e6056..0099b7bd7 100644 --- a/setup/nocodb-install.sh +++ b/setup/nocodb-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") diff --git a/setup/node-red-install.sh b/setup/node-red-install.sh index b535cf54d..2169624ae 100644 --- a/setup/node-red-install.sh +++ b/setup/node-red-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") diff --git a/setup/omada-install.sh b/setup/omada-install.sh index d55510f91..0daab6a0f 100644 --- a/setup/omada-install.sh +++ b/setup/omada-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") diff --git a/setup/omv-install.sh b/setup/omv-install.sh index 3b8b07e37..415e428b0 100644 --- a/setup/omv-install.sh +++ b/setup/omv-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi export DEBIAN_FRONTEND=noninteractive YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") diff --git a/setup/openhab-install.sh b/setup/openhab-install.sh index 24600d2d9..5736c2b0c 100644 --- a/setup/openhab-install.sh +++ b/setup/openhab-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") diff --git a/setup/paperless-ngx-install.sh b/setup/paperless-ngx-install.sh index 14fa3d1b3..a994c2f35 100644 --- a/setup/paperless-ngx-install.sh +++ b/setup/paperless-ngx-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") diff --git a/setup/photoprism-install.sh b/setup/photoprism-install.sh index a879cc0e8..6b6ec3f71 100644 --- a/setup/photoprism-install.sh +++ b/setup/photoprism-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi AVX=$(grep -o -m1 'avx[^ ]*' /proc/cpuinfo) YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") diff --git a/setup/pihole-install.sh b/setup/pihole-install.sh index 1b785b05d..8e3783ac4 100644 --- a/setup/pihole-install.sh +++ b/setup/pihole-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi export DEBIAN_FRONTEND=noninteractive YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") diff --git a/setup/plex-install.sh b/setup/plex-install.sh index 478838562..935272565 100644 --- a/setup/plex-install.sh +++ b/setup/plex-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") diff --git a/setup/podman-homeassistant-install.sh b/setup/podman-homeassistant-install.sh index 9cd770874..7fb816415 100644 --- a/setup/podman-homeassistant-install.sh +++ b/setup/podman-homeassistant-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") diff --git a/setup/postgresql-install.sh b/setup/postgresql-install.sh index 4b5986be4..88cd544d0 100644 --- a/setup/postgresql-install.sh +++ b/setup/postgresql-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") diff --git a/setup/prometheus-install.sh b/setup/prometheus-install.sh index 8c0b5dc84..c0493b2f7 100644 --- a/setup/prometheus-install.sh +++ b/setup/prometheus-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") diff --git a/setup/scrypted-install.sh b/setup/scrypted-install.sh index 1bb80bdc3..2347d59a8 100644 --- a/setup/scrypted-install.sh +++ b/setup/scrypted-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") diff --git a/setup/shinobi-install.sh b/setup/shinobi-install.sh index a72a55724..ba6fa2afd 100644 --- a/setup/shinobi-install.sh +++ b/setup/shinobi-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") diff --git a/setup/syncthing-install.sh b/setup/syncthing-install.sh index 15e34ca23..c16488f6d 100644 --- a/setup/syncthing-install.sh +++ b/setup/syncthing-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") diff --git a/setup/technitiumdns-install.sh b/setup/technitiumdns-install.sh index 509e2fda7..dbd8ecd19 100644 --- a/setup/technitiumdns-install.sh +++ b/setup/technitiumdns-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") diff --git a/setup/trilium-install.sh b/setup/trilium-install.sh index f5080744f..c7f97023f 100644 --- a/setup/trilium-install.sh +++ b/setup/trilium-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") diff --git a/setup/ubuntu-install.sh b/setup/ubuntu-install.sh index 3cc2a4b33..b090d307f 100644 --- a/setup/ubuntu-install.sh +++ b/setup/ubuntu-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") diff --git a/setup/umbrel-install.sh b/setup/umbrel-install.sh index 11f26a6d8..872a09074 100644 --- a/setup/umbrel-install.sh +++ b/setup/umbrel-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") diff --git a/setup/unifi-install.sh b/setup/unifi-install.sh index 2210a47e7..6dcd2e00b 100644 --- a/setup/unifi-install.sh +++ b/setup/unifi-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi #https://community.ui.com/questions/UniFi-Installation-Scripts-or-UniFi-Easy-Update-Script-or-UniFi-Lets-Encrypt-or-UniFi-Easy-Encrypt-/ccbc7530-dd61-40a7-82ec-22b17f027776 YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") diff --git a/setup/uptimekuma-install.sh b/setup/uptimekuma-install.sh index f08f50216..c542bba5a 100644 --- a/setup/uptimekuma-install.sh +++ b/setup/uptimekuma-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") diff --git a/setup/vaultwarden-install.sh b/setup/vaultwarden-install.sh index 2047f631a..72a03a9e1 100644 --- a/setup/vaultwarden-install.sh +++ b/setup/vaultwarden-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") diff --git a/setup/whoogle-install.sh b/setup/whoogle-install.sh index b574667a2..dc3efde81 100644 --- a/setup/whoogle-install.sh +++ b/setup/whoogle-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") diff --git a/setup/wikijs-install.sh b/setup/wikijs-install.sh index 512552118..8194d606d 100644 --- a/setup/wikijs-install.sh +++ b/setup/wikijs-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") diff --git a/setup/wireguard-install.sh b/setup/wireguard-install.sh index e8b827533..96e11ce9f 100644 --- a/setup/wireguard-install.sh +++ b/setup/wireguard-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") diff --git a/setup/zigbee2mqtt-install.sh b/setup/zigbee2mqtt-install.sh index 2ac580b79..1d488c49c 100644 --- a/setup/zigbee2mqtt-install.sh +++ b/setup/zigbee2mqtt-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") diff --git a/setup/zwave-js-ui-install.sh b/setup/zwave-js-ui-install.sh index 031ef3296..b67f28d54 100644 --- a/setup/zwave-js-ui-install.sh +++ b/setup/zwave-js-ui-install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +if [ "$VERBOSE" == "yes" ]; then set -x; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m")