From 34450b083602db8fefdb94b4d2194062ce6b4ead Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 10:03:15 -0400 Subject: [PATCH 01/72] Update debian-v3.sh --- ct/debian-v3.sh | 51 ++++++++++++++++++++++++++++++++++++------------- 1 file changed, 38 insertions(+), 13 deletions(-) diff --git a/ct/debian-v3.sh b/ct/debian-v3.sh index 462a0942..0870c851 100644 --- a/ct/debian-v3.sh +++ b/ct/debian-v3.sh @@ -1,6 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob +#!/usr/bin/env bash APP="Debian" var_disk="2" var_cpu="1" @@ -21,6 +19,43 @@ CL=`echo "\033[m"` BFR="\\r\\033[K" HOLD="-" CM="${GN}✓${CL}" +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function msg_info() { + local msg="$1" + echo -ne " ${HOLD} ${YW}${msg}..." +} + +function msg_ok() { + local msg="$1" + echo -e "${BFR} ${CM} ${GN}${msg}${CL}" +} + +function error_exit() { + trap - ERR + local DEFAULT="Unknown failure occured." + local REASON="${1:-$DEFAULT}" + local FLAG="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$FLAG $REASON" 1>&2 + exit $EXIT +} +function warn() { + local REASON="$1" + local FLAG="${YW}⚠ WARNING ${CL}" + echo -e "$FLAG $REASON" +} +function info() { + local REASON="$1" + local FLAG="${BL}ℹ INFO ${CL}" + echo -e "$FLAG $REASON" +} + while true; do read -p "This will create a New ${APP} LXC. Proceed(y/n)?" yn case $yn in @@ -43,16 +78,6 @@ ${CL}" header_info -function msg_info() { - local msg="$1" - echo -ne " ${HOLD} ${YW}${msg}..." -} - -function msg_ok() { - local msg="$1" - echo -e "${BFR} ${CM} ${GN}${msg}${CL}" -} - function PVE_CHECK() { PVE=$(pveversion | grep "pve-manager/7" | wc -l) From 785ca697b376720a08aa4b0e116d10779027ccbe Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 10:18:13 -0400 Subject: [PATCH 02/72] Update debian-v3.sh --- ct/debian-v3.sh | 26 ++++++++------------------ 1 file changed, 8 insertions(+), 18 deletions(-) diff --git a/ct/debian-v3.sh b/ct/debian-v3.sh index 0870c851..245c11bf 100644 --- a/ct/debian-v3.sh +++ b/ct/debian-v3.sh @@ -28,33 +28,23 @@ alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR function msg_info() { - local msg="$1" - echo -ne " ${HOLD} ${YW}${msg}..." + local msg="$1" + echo -ne " ${HOLD} ${YW}${msg}..." } function msg_ok() { - local msg="$1" - echo -e "${BFR} ${CM} ${GN}${msg}${CL}" + local msg="$1" + echo -e "${BFR} ${CM} ${GN}${msg}${CL}" } function error_exit() { trap - ERR - local DEFAULT="Unknown failure occured." - local REASON="${1:-$DEFAULT}" - local FLAG="${RD}‼ ERROR ${CL}$EXIT@$LINE" - echo -e "$FLAG $REASON" 1>&2 + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 exit $EXIT } -function warn() { - local REASON="$1" - local FLAG="${YW}⚠ WARNING ${CL}" - echo -e "$FLAG $REASON" -} -function info() { - local REASON="$1" - local FLAG="${BL}ℹ INFO ${CL}" - echo -e "$FLAG $REASON" -} while true; do read -p "This will create a New ${APP} LXC. Proceed(y/n)?" yn From dc446ad10966aa52ddb9705862b90917f8eb3e47 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 10:20:22 -0400 Subject: [PATCH 03/72] Update create_lxc.sh --- ct/create_lxc.sh | 56 ++++++++++++++++++------------------------------ 1 file changed, 21 insertions(+), 35 deletions(-) diff --git a/ct/create_lxc.sh b/ct/create_lxc.sh index c0db635d..1f70d623 100644 --- a/ct/create_lxc.sh +++ b/ct/create_lxc.sh @@ -1,11 +1,4 @@ #!/usr/bin/env bash - -set -o errexit -set -o errtrace -set -o nounset -set -o pipefail -shopt -s expand_aliases -alias die='EXIT=$? LINE=$LINENO error_exit' YW=`echo "\033[33m"` BL=`echo "\033[36m"` RD=`echo "\033[01;31m"` @@ -14,40 +7,33 @@ CL=`echo "\033[m"` CM="${GN}✓${CL}" BFR="\\r\\033[K" HOLD="-" +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -function msg_info() { - local msg="$1" - echo -ne " ${HOLD} ${YW}${msg}..." -} - -function msg_ok() { - local msg="$1" - echo -e "${BFR} ${CM} ${GN}${msg}${CL}" -} - function error_exit() { trap - ERR - local DEFAULT='Unknown failure occured.' - local REASON="\e[97m${1:-$DEFAULT}\e[39m" - local FLAG="\e[91m[ERROR] \e[93m$EXIT@$LINE" - msg "$FLAG $REASON" 1>&2 + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 exit $EXIT } -function warn() { - local REASON="\e[97m$1\e[39m" - local FLAG="\e[93m[WARNING]\e[39m" - msg "$FLAG $REASON" + +function msg_info() { + local msg="$1" + echo -ne " ${HOLD} ${YW}${msg}..." } -function info() { - local REASON="$1" - local FLAG="\e[36m[INFO]\e[39m" - msg "$FLAG $REASON" -} -function msg() { - local TEXT="$1" - echo -e "$TEXT" + +function msg_ok() { + local msg="$1" + echo -e "${BFR} ${CM} ${GN}${msg}${CL}" } + function select_storage() { local CLASS=$1 local CONTENT @@ -100,10 +86,10 @@ if pct status $CTID &>/dev/null; then fi TEMPLATE_STORAGE=$(select_storage template) || exit -msg_ok "Using ${BL}$TEMPLATE_STORAGE${CL} ${GN}for Template Storage." +msg_ok "Using ${BL}ℹ $TEMPLATE_STORAGE${CL} ${GN}for Template Storage." CONTAINER_STORAGE=$(select_storage container) || exit -msg_ok "Using ${BL}$CONTAINER_STORAGE${CL} ${GN}for Container Storage." +msg_ok "Using ${BL}ℹ $CONTAINER_STORAGE${CL} ${GN}for Container Storage." msg_info "Updating LXC Template List" pveam update >/dev/null From f72594e554ff534d9c0cf7f222c56387723949fb Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 10:21:16 -0400 Subject: [PATCH 04/72] Update debian-v3.sh --- ct/debian-v3.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/ct/debian-v3.sh b/ct/debian-v3.sh index 245c11bf..b8b46249 100644 --- a/ct/debian-v3.sh +++ b/ct/debian-v3.sh @@ -27,6 +27,15 @@ shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} + function msg_info() { local msg="$1" echo -ne " ${HOLD} ${YW}${msg}..." @@ -37,15 +46,6 @@ function msg_ok() { echo -e "${BFR} ${CM} ${GN}${msg}${CL}" } -function error_exit() { - trap - ERR - local reason="Unknown failure occured." - local msg="${1:-$reason}" - local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" - echo -e "$flag $msg" 1>&2 - exit $EXIT -} - while true; do read -p "This will create a New ${APP} LXC. Proceed(y/n)?" yn case $yn in From 52604ccdc039e3ec36d8e71562657c5aecde05d1 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 10:23:00 -0400 Subject: [PATCH 05/72] Update debian-install.sh --- setup/debian-install.sh | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/setup/debian-install.sh b/setup/debian-install.sh index 8d4ae254..ec5d62e7 100644 --- a/setup/debian-install.sh +++ b/setup/debian-install.sh @@ -1,6 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob +#!/usr/bin/env bash YW=`echo "\033[33m"` RD=`echo "\033[01;31m"` BL=`echo "\033[36m"` @@ -13,6 +11,22 @@ CM="${GN}✓${CL}" CROSS="${RD}✗${CL}" BFR="\\r\\033[K" HOLD="-" +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} function msg_info() { local msg="$1" From ec03ccf08ed802e7e63df1ab7866e65791fd3733 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 10:24:07 -0400 Subject: [PATCH 06/72] Update debian-v3.sh --- ct/debian-v3.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ct/debian-v3.sh b/ct/debian-v3.sh index b8b46249..b0c3b9ac 100644 --- a/ct/debian-v3.sh +++ b/ct/debian-v3.sh @@ -339,13 +339,13 @@ export PCT_OPTIONS=" -unprivileged $CT_TYPE $PW " -bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/ct/create_lxc.sh)" || exit +bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/dev/ct/create_lxc.sh)" || exit msg_info "Starting LXC Container" pct start $CTID msg_ok "Started LXC Container" -lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/setup/$var_install.sh)" || exit +lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/dev/setup/$var_install.sh)" || exit IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}') From 094c9f56c2572ca88ef851d0910e8091c01070d3 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 10:27:30 -0400 Subject: [PATCH 07/72] Update create_lxc.sh --- ct/create_lxc.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ct/create_lxc.sh b/ct/create_lxc.sh index 1f70d623..219ace7d 100644 --- a/ct/create_lxc.sh +++ b/ct/create_lxc.sh @@ -86,10 +86,10 @@ if pct status $CTID &>/dev/null; then fi TEMPLATE_STORAGE=$(select_storage template) || exit -msg_ok "Using ${BL}ℹ $TEMPLATE_STORAGE${CL} ${GN}for Template Storage." +msg_ok "Using ${BL}$TEMPLATE_STORAGE${CL} ${GN}for Template Storage." CONTAINER_STORAGE=$(select_storage container) || exit -msg_ok "Using ${BL}ℹ $CONTAINER_STORAGE${CL} ${GN}for Container Storage." +msg_ok "Using ${BL}$CONTAINER_STORAGE${CL} ${GN}for Container Storage." msg_info "Updating LXC Template List" pveam update >/dev/null From f7bcbf8a23a4aedb0766f2232ff64ffc79f53a7d Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 10:29:06 -0400 Subject: [PATCH 08/72] Update debian-v3.sh --- ct/debian-v3.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ct/debian-v3.sh b/ct/debian-v3.sh index b0c3b9ac..b8b46249 100644 --- a/ct/debian-v3.sh +++ b/ct/debian-v3.sh @@ -339,13 +339,13 @@ export PCT_OPTIONS=" -unprivileged $CT_TYPE $PW " -bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/dev/ct/create_lxc.sh)" || exit +bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/ct/create_lxc.sh)" || exit msg_info "Starting LXC Container" pct start $CTID msg_ok "Started LXC Container" -lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/dev/setup/$var_install.sh)" || exit +lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/setup/$var_install.sh)" || exit IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}') From 652d40d236219a4a314bd4944454e5641683a705 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 10:32:59 -0400 Subject: [PATCH 09/72] Update adguard-v3.sh --- ct/adguard-v3.sh | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/ct/adguard-v3.sh b/ct/adguard-v3.sh index 251e56af..3e75500a 100644 --- a/ct/adguard-v3.sh +++ b/ct/adguard-v3.sh @@ -1,6 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob +#!/usr/bin/env bash NEXTID=$(pvesh get /cluster/nextid) INTEGER='^[0-9]+$' @@ -16,6 +14,23 @@ HOLD="-" CM="${GN}✓${CL}" APP="Adguard" NSAPP=$(echo ${APP,,} | tr -d ' ') +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} + while true; do read -p "This will create a New ${APP} LXC. Proceed(y/n)?" yn case $yn in From 1338c49b7b5335337f6a3bb97f24044219a12834 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 10:33:58 -0400 Subject: [PATCH 10/72] Update daemonsync-v3.sh --- ct/daemonsync-v3.sh | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/ct/daemonsync-v3.sh b/ct/daemonsync-v3.sh index ca457749..77380ecb 100644 --- a/ct/daemonsync-v3.sh +++ b/ct/daemonsync-v3.sh @@ -1,7 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob - +#!/usr/bin/env bash NEXTID=$(pvesh get /cluster/nextid) INTEGER='^[0-9]+$' YW=`echo "\033[33m"` @@ -16,6 +13,23 @@ HOLD="-" CM="${GN}✓${CL}" APP="Daemon Sync" NSAPP=$(echo ${APP,,} | tr -d ' ') +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} + while true; do read -p "This will create a New ${APP} LXC. Proceed(y/n)?" yn case $yn in From 6e54e1ae36a85279c5097d26297bb11b3216b5da Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 10:34:38 -0400 Subject: [PATCH 11/72] Update dashy-v3.sh --- ct/dashy-v3.sh | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/ct/dashy-v3.sh b/ct/dashy-v3.sh index bca7028f..15c854ea 100644 --- a/ct/dashy-v3.sh +++ b/ct/dashy-v3.sh @@ -1,7 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob - +#!/usr/bin/env bash NEXTID=$(pvesh get /cluster/nextid) INTEGER='^[0-9]+$' YW=`echo "\033[33m"` @@ -16,6 +13,23 @@ HOLD="-" CM="${GN}✓${CL}" APP="Dashy" NSAPP=$(echo ${APP,,} | tr -d ' ') +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} + while true; do read -p "This will create a New ${APP} LXC. Proceed(y/n)?" yn case $yn in From 26f279161d500460f743fe2242022854b0681902 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 10:35:31 -0400 Subject: [PATCH 12/72] Update docker-v3.sh --- ct/docker-v3.sh | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/ct/docker-v3.sh b/ct/docker-v3.sh index 42160fbc..6017af58 100644 --- a/ct/docker-v3.sh +++ b/ct/docker-v3.sh @@ -1,6 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob +#!/usr/bin/env bash NEXTID=$(pvesh get /cluster/nextid) INTEGER='^[0-9]+$' YW=`echo "\033[33m"` @@ -15,6 +13,23 @@ HOLD="-" CM="${GN}✓${CL}" APP="Docker" NSAPP=$(echo ${APP,,} | tr -d ' ') +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} + while true; do read -p "This will create a New ${APP} LXC. Proceed(y/n)?" yn case $yn in From 184b2b61910b662305a5af81e47a8343671a5f1d Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 10:36:10 -0400 Subject: [PATCH 13/72] Update esphome-v3.sh --- ct/esphome-v3.sh | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/ct/esphome-v3.sh b/ct/esphome-v3.sh index 113dfb8d..753d2df3 100644 --- a/ct/esphome-v3.sh +++ b/ct/esphome-v3.sh @@ -1,7 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob - +#!/usr/bin/env bash NEXTID=$(pvesh get /cluster/nextid) INTEGER='^[0-9]+$' YW=`echo "\033[33m"` @@ -16,6 +13,23 @@ HOLD="-" CM="${GN}✓${CL}" APP="ESPHome" NSAPP=$(echo ${APP,,} | tr -d ' ') +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} + while true; do read -p "This will create a New ${APP} LXC. Proceed(y/n)?" yn case $yn in From 7428b7f060ab89e82a6fa67eae6c7f28f5e62a64 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 10:37:00 -0400 Subject: [PATCH 14/72] Update grafana-v3.sh --- ct/grafana-v3.sh | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/ct/grafana-v3.sh b/ct/grafana-v3.sh index 451a07bb..c8a8e0ef 100644 --- a/ct/grafana-v3.sh +++ b/ct/grafana-v3.sh @@ -1,7 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob - +#!/usr/bin/env bash NEXTID=$(pvesh get /cluster/nextid) INTEGER='^[0-9]+$' YW=`echo "\033[33m"` @@ -16,6 +13,23 @@ HOLD="-" CM="${GN}✓${CL}" APP="Grafana" NSAPP=$(echo ${APP,,} | tr -d ' ') +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} + while true; do read -p "This will create a New ${APP} LXC. Proceed(y/n)?" yn case $yn in From 9e4060688fa7e8d513abc3e54a3b1c94529679a2 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 10:37:59 -0400 Subject: [PATCH 15/72] Update heimdalldashboard-v3.sh --- ct/heimdalldashboard-v3.sh | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/ct/heimdalldashboard-v3.sh b/ct/heimdalldashboard-v3.sh index 7439f163..2b49da03 100644 --- a/ct/heimdalldashboard-v3.sh +++ b/ct/heimdalldashboard-v3.sh @@ -1,7 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob - +#!/usr/bin/env bash NEXTID=$(pvesh get /cluster/nextid) INTEGER='^[0-9]+$' PP=`echo "\e[1;35m"` @@ -17,6 +14,23 @@ HOLD="-" CM="${GN}✓${CL}" APP="Heimdall Dashboard" NSAPP=$(echo ${APP,,} | tr -d ' ') +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} + while true; do read -p "This will create a New ${APP} LXC. Proceed(y/n)?" yn case $yn in From cef10337b350832f989baddbda3b417d0c715b15 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 10:38:44 -0400 Subject: [PATCH 16/72] Update homeassistant-v3.sh --- ct/homeassistant-v3.sh | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/ct/homeassistant-v3.sh b/ct/homeassistant-v3.sh index e77b131e..0c402bba 100644 --- a/ct/homeassistant-v3.sh +++ b/ct/homeassistant-v3.sh @@ -1,6 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob +#!/usr/bin/env bash NEXTID=$(pvesh get /cluster/nextid) INTEGER='^[0-9]+$' YW=`echo "\033[33m"` @@ -15,6 +13,23 @@ HOLD="-" CM="${GN}✓${CL}" APP="Home Assistant" NSAPP=$(echo ${APP,,} | tr -d ' ') +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} + while true; do read -p "This will create a New ${APP} LXC. Proceed(y/n)?" yn case $yn in From 2e557898dba071fa11ed0e7f1db30bd72e1a8c05 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 10:39:17 -0400 Subject: [PATCH 17/72] Update homebridge-v3.sh --- ct/homebridge-v3.sh | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/ct/homebridge-v3.sh b/ct/homebridge-v3.sh index 67a671be..6b1f9a02 100644 --- a/ct/homebridge-v3.sh +++ b/ct/homebridge-v3.sh @@ -1,7 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob - +#!/usr/bin/env bash NEXTID=$(pvesh get /cluster/nextid) INTEGER='^[0-9]+$' YW=`echo "\033[33m"` @@ -16,6 +13,23 @@ HOLD="-" CM="${GN}✓${CL}" APP="Homebridge" NSAPP=$(echo ${APP,,} | tr -d ' ') +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} + while true; do read -p "This will create a New ${APP} LXC. Proceed(y/n)?" yn case $yn in From fa38d2a5ed0ef99576b7f418a0feea882eacdd82 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 10:39:55 -0400 Subject: [PATCH 18/72] Update influxdb-v3.sh --- ct/influxdb-v3.sh | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/ct/influxdb-v3.sh b/ct/influxdb-v3.sh index 61641441..014302fe 100644 --- a/ct/influxdb-v3.sh +++ b/ct/influxdb-v3.sh @@ -1,7 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob - +#!/usr/bin/env bash NEXTID=$(pvesh get /cluster/nextid) INTEGER='^[0-9]+$' YW=`echo "\033[33m"` @@ -16,6 +13,23 @@ HOLD="-" CM="${GN}✓${CL}" APP="InfluxDB" NSAPP=$(echo ${APP,,} | tr -d ' ') +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} + while true; do read -p "This will create a New ${APP} LXC. Proceed(y/n)?" yn case $yn in From e4e1d259228ed41a83e9cb459a3d7020cc3ab7a9 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 10:40:31 -0400 Subject: [PATCH 19/72] Update iobroker-v3.sh --- ct/iobroker-v3.sh | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/ct/iobroker-v3.sh b/ct/iobroker-v3.sh index d19fb1ea..9a7307f5 100644 --- a/ct/iobroker-v3.sh +++ b/ct/iobroker-v3.sh @@ -1,7 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob - +#!/usr/bin/env bash NEXTID=$(pvesh get /cluster/nextid) INTEGER='^[0-9]+$' YW=`echo "\033[33m"` @@ -16,6 +13,23 @@ HOLD="-" CM="${GN}✓${CL}" APP="ioBroker" NSAPP=$(echo ${APP,,} | tr -d ' ') +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} + while true; do read -p "This will create a New ${APP} LXC. Proceed(y/n)?" yn case $yn in From aeaadd4f90ab99ab2ef23697f8378a8160f1315b Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 10:41:16 -0400 Subject: [PATCH 20/72] Update jellyfin-v3.sh --- ct/jellyfin-v3.sh | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/ct/jellyfin-v3.sh b/ct/jellyfin-v3.sh index d8968d70..44d46c22 100644 --- a/ct/jellyfin-v3.sh +++ b/ct/jellyfin-v3.sh @@ -1,6 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob +#!/usr/bin/env bash NEXTID=$(pvesh get /cluster/nextid) INTEGER='^[0-9]+$' YW=`echo "\033[33m"` @@ -16,6 +14,23 @@ CM="${GN}✓${CL}" CROSS="${RD}✗${CL}" APP="Jellyfin" NSAPP=$(echo ${APP,,} | tr -d ' ') +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} + while true; do read -p "This will create a New ${APP} LXC. Proceed(y/n)?" yn case $yn in From 278d0c792be45da3d63ac45c1c4fbae876c40e80 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 10:41:52 -0400 Subject: [PATCH 21/72] Update mariadb-v3.sh --- ct/mariadb-v3.sh | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/ct/mariadb-v3.sh b/ct/mariadb-v3.sh index 3bfa751e..74f965f5 100644 --- a/ct/mariadb-v3.sh +++ b/ct/mariadb-v3.sh @@ -1,7 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob - +#!/usr/bin/env bash NEXTID=$(pvesh get /cluster/nextid) INTEGER='^[0-9]+$' YW=`echo "\033[33m"` @@ -16,6 +13,23 @@ HOLD="-" CM="${GN}✓${CL}" APP="MariaDB" NSAPP=$(echo ${APP,,} | tr -d ' ') +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} + while true; do read -p "This will create a New ${APP} LXC. Proceed(y/n)?" yn case $yn in From ec4474220e4d22ce0b77b55f5f7e012ce141b9d3 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 10:42:28 -0400 Subject: [PATCH 22/72] Update meshcentral-v3.sh --- ct/meshcentral-v3.sh | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/ct/meshcentral-v3.sh b/ct/meshcentral-v3.sh index e813645b..6eb9b4f2 100644 --- a/ct/meshcentral-v3.sh +++ b/ct/meshcentral-v3.sh @@ -1,7 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob - +#!/usr/bin/env bash NEXTID=$(pvesh get /cluster/nextid) INTEGER='^[0-9]+$' YW=`echo "\033[33m"` @@ -16,6 +13,23 @@ HOLD="-" CM="${GN}✓${CL}" APP="MeshCentral" NSAPP=$(echo ${APP,,} | tr -d ' ') +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} + while true; do read -p "This will create a New ${APP} LXC. Proceed(y/n)?" yn case $yn in From 47876a6a0645bacbba41b8db8db8dd18c698ba98 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 10:43:10 -0400 Subject: [PATCH 23/72] Update motioneye-v3.sh --- ct/motioneye-v3.sh | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/ct/motioneye-v3.sh b/ct/motioneye-v3.sh index fa2430d7..219d45da 100644 --- a/ct/motioneye-v3.sh +++ b/ct/motioneye-v3.sh @@ -1,7 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob - +#!/usr/bin/env bash NEXTID=$(pvesh get /cluster/nextid) INTEGER='^[0-9]+$' YW=`echo "\033[33m"` @@ -16,6 +13,23 @@ HOLD="-" CM="${GN}✓${CL}" APP="Motioneye" NSAPP=$(echo ${APP,,} | tr -d ' ') +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} + while true; do read -p "This will create a New ${APP} LXC. Proceed(y/n)?" yn case $yn in From 00a98def2b7997278245d811d9e0eb88e0e69c4e Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 10:44:04 -0400 Subject: [PATCH 24/72] Update mqtt-v3.sh --- ct/mqtt-v3.sh | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/ct/mqtt-v3.sh b/ct/mqtt-v3.sh index deeed5c8..210b531b 100644 --- a/ct/mqtt-v3.sh +++ b/ct/mqtt-v3.sh @@ -1,7 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob - +#!/usr/bin/env bash NEXTID=$(pvesh get /cluster/nextid) INTEGER='^[0-9]+$' YW=`echo "\033[33m"` @@ -16,6 +13,23 @@ HOLD="-" CM="${GN}✓${CL}" APP="MQTT" NSAPP=$(echo ${APP,,} | tr -d ' ') +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} + while true; do read -p "This will create a New ${APP} LXC. Proceed(y/n)?" yn case $yn in From 5341c4e0047b42e8d8d559370bfaecff93d81172 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 10:44:51 -0400 Subject: [PATCH 25/72] Update nginx-proxy-manager-v3.sh --- ct/nginx-proxy-manager-v3.sh | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/ct/nginx-proxy-manager-v3.sh b/ct/nginx-proxy-manager-v3.sh index 97ba9d2a..8aba78d3 100644 --- a/ct/nginx-proxy-manager-v3.sh +++ b/ct/nginx-proxy-manager-v3.sh @@ -1,7 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob - +#!/usr/bin/env bash NEXTID=$(pvesh get /cluster/nextid) INTEGER='^[0-9]+$' YW=`echo "\033[33m"` @@ -16,6 +13,23 @@ HOLD="-" CM="${GN}✓${CL}" APP="Nginx Proxy Manager" NSAPP=$(echo ${APP,,} | tr -d ' ') +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} + while true; do read -p "This will create a New ${APP} LXC. Proceed(y/n)?" yn case $yn in From 30c70189876c54de8681a5b2418d69c942277678 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 10:45:30 -0400 Subject: [PATCH 26/72] Update nocodb-v3.sh --- ct/nocodb-v3.sh | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/ct/nocodb-v3.sh b/ct/nocodb-v3.sh index 56d4c1e0..bc48a6f3 100644 --- a/ct/nocodb-v3.sh +++ b/ct/nocodb-v3.sh @@ -1,7 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob - +#!/usr/bin/env bash NEXTID=$(pvesh get /cluster/nextid) INTEGER='^[0-9]+$' YW=`echo "\033[33m"` @@ -16,6 +13,23 @@ HOLD="-" CM="${GN}✓${CL}" APP="NocoDB" NSAPP=$(echo ${APP,,} | tr -d ' ') +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} + while true; do read -p "This will create a New ${APP} LXC. Proceed(y/n)?" yn case $yn in From 81381ac6e6b2d68c3cfde7468914e2759a34a739 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 10:48:46 -0400 Subject: [PATCH 27/72] Update node-red-v3.sh --- ct/node-red-v3.sh | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/ct/node-red-v3.sh b/ct/node-red-v3.sh index 38868600..ee40b13e 100644 --- a/ct/node-red-v3.sh +++ b/ct/node-red-v3.sh @@ -1,7 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob - +#!/usr/bin/env bash NEXTID=$(pvesh get /cluster/nextid) INTEGER='^[0-9]+$' YW=`echo "\033[33m"` @@ -16,6 +13,23 @@ HOLD="-" CM="${GN}✓${CL}" APP="Node Red" NSAPP=$(echo ${APP,,} | tr -d ' ') +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} + while true; do read -p "This will create a New ${APP} LXC. Proceed(y/n)?" yn case $yn in From 6cd864c440c1c3a92eb0af67ffa007b741eb4e36 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 10:49:41 -0400 Subject: [PATCH 28/72] Update omada-v3.sh --- ct/omada-v3.sh | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/ct/omada-v3.sh b/ct/omada-v3.sh index b0d264aa..b6b2a767 100644 --- a/ct/omada-v3.sh +++ b/ct/omada-v3.sh @@ -1,7 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob - +#!/usr/bin/env bash NEXTID=$(pvesh get /cluster/nextid) INTEGER='^[0-9]+$' YW=`echo "\033[33m"` @@ -16,6 +13,23 @@ HOLD="-" CM="${GN}✓${CL}" APP="Omada" NSAPP=$(echo ${APP,,} | tr -d ' ') +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} + while true; do read -p "This will create a New ${APP} LXC. Proceed(y/n)?" yn case $yn in From 140aa7fe95e17887938fc2295f32caa2755080cc Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 10:50:35 -0400 Subject: [PATCH 29/72] Update photoprism-v3.sh --- ct/photoprism-v3.sh | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/ct/photoprism-v3.sh b/ct/photoprism-v3.sh index 5549ca57..979a40f1 100644 --- a/ct/photoprism-v3.sh +++ b/ct/photoprism-v3.sh @@ -1,6 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob +#!/usr/bin/env bash NEXTID=$(pvesh get /cluster/nextid) INTEGER='^[0-9]+$' PP=`echo "\e[1;35m"` @@ -16,6 +14,23 @@ HOLD="-" CM="${GN}✓${CL}" APP="PhotoPrism" NSAPP=$(echo ${APP,,} | tr -d ' ') +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} + while true; do read -p "This will create a New ${APP} LXC. Proceed(y/n)?" yn case $yn in From ecea03c2bf21b6147ca9766ca6c34c1f4ee11968 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 10:51:16 -0400 Subject: [PATCH 30/72] Update pihole-v3.sh --- ct/pihole-v3.sh | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/ct/pihole-v3.sh b/ct/pihole-v3.sh index 7de4ca44..65fc2c54 100644 --- a/ct/pihole-v3.sh +++ b/ct/pihole-v3.sh @@ -1,7 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob - +#!/usr/bin/env bash NEXTID=$(pvesh get /cluster/nextid) INTEGER='^[0-9]+$' YW=`echo "\033[33m"` @@ -16,6 +13,23 @@ HOLD="-" CM="${GN}✓${CL}" APP="Pihole" NSAPP=$(echo ${APP,,} | tr -d ' ') +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} + while true; do read -p "This will create a New ${APP} LXC. Proceed(y/n)?" yn case $yn in From 0bcb965b63f20bb6f6d9138fa4986a550713bc94 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 10:51:53 -0400 Subject: [PATCH 31/72] Update plex-v3.sh --- ct/plex-v3.sh | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/ct/plex-v3.sh b/ct/plex-v3.sh index d6695976..cdb277a2 100644 --- a/ct/plex-v3.sh +++ b/ct/plex-v3.sh @@ -1,6 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob +#!/usr/bin/env bash NEXTID=$(pvesh get /cluster/nextid) INTEGER='^[0-9]+$' YW=`echo "\033[33m"` @@ -16,6 +14,23 @@ CM="${GN}✓${CL}" CROSS="${RD}✗${CL}" APP="Plex" NSAPP=$(echo ${APP,,} | tr -d ' ') +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} + while true; do read -p "This will create a New ${APP} LXC. Proceed(y/n)?" yn case $yn in From ea9f343713bdb5474934988e1af5db2a5be24d84 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 10:52:31 -0400 Subject: [PATCH 32/72] Update podman-homeassistant-v3.sh --- ct/podman-homeassistant-v3.sh | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/ct/podman-homeassistant-v3.sh b/ct/podman-homeassistant-v3.sh index 90a688e7..0184dd3e 100644 --- a/ct/podman-homeassistant-v3.sh +++ b/ct/podman-homeassistant-v3.sh @@ -1,6 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob +#!/usr/bin/env bash NEXTID=$(pvesh get /cluster/nextid) INTEGER='^[0-9]+$' YW=`echo "\033[33m"` @@ -16,6 +14,23 @@ CM="${GN}✓${CL}" CROSS="${RD}✗${CL}" APP="P-Home Assistant" NSAPP=$(echo ${APP,,} | tr -d ' ') +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} + while true; do read -p "This will create a New ${APP} LXC. Proceed(y/n)?" yn case $yn in From 3f3baef79c957f7b2d47af038c2a46d1bef8da98 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 10:53:11 -0400 Subject: [PATCH 33/72] Update technitiumdns-v3.sh --- ct/technitiumdns-v3.sh | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/ct/technitiumdns-v3.sh b/ct/technitiumdns-v3.sh index f22f3103..5e2d6062 100644 --- a/ct/technitiumdns-v3.sh +++ b/ct/technitiumdns-v3.sh @@ -1,7 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob - +#!/usr/bin/env bash NEXTID=$(pvesh get /cluster/nextid) INTEGER='^[0-9]+$' YW=`echo "\033[33m"` @@ -16,6 +13,23 @@ HOLD="-" CM="${GN}✓${CL}" APP="Technitium DNS" NSAPP=$(echo ${APP,,} | tr -d ' ') +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} + while true; do read -p "This will create a New ${APP} LXC. Proceed(y/n)?" yn case $yn in From 7320c2a3eda35a35de2b393e0b08ad9d17cb99ae Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 10:54:08 -0400 Subject: [PATCH 34/72] Update ubuntu-v3.sh --- ct/ubuntu-v3.sh | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/ct/ubuntu-v3.sh b/ct/ubuntu-v3.sh index 2d7cc48a..908a55f0 100644 --- a/ct/ubuntu-v3.sh +++ b/ct/ubuntu-v3.sh @@ -1,7 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob - +#!/usr/bin/env bash NEXTID=$(pvesh get /cluster/nextid) INTEGER='^[0-9]+$' YW=`echo "\033[33m"` @@ -16,6 +13,23 @@ HOLD="-" CM="${GN}✓${CL}" APP="Ubuntu" NSAPP=$(echo ${APP,,} | tr -d ' ') +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} + while true; do read -p "This will create a New ${APP} LXC. Proceed(y/n)?" yn case $yn in From 955baebd421f313688be7c7b17173a716735f309 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 10:54:41 -0400 Subject: [PATCH 35/72] Update unifi-v3.sh --- ct/unifi-v3.sh | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/ct/unifi-v3.sh b/ct/unifi-v3.sh index d5d2735a..ff37c0fc 100644 --- a/ct/unifi-v3.sh +++ b/ct/unifi-v3.sh @@ -1,7 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob - +#!/usr/bin/env bash NEXTID=$(pvesh get /cluster/nextid) INTEGER='^[0-9]+$' YW=`echo "\033[33m"` @@ -16,6 +13,23 @@ HOLD="-" CM="${GN}✓${CL}" APP="Unifi" NSAPP=$(echo ${APP,,} | tr -d ' ') +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} + while true; do read -p "This will create a New ${APP} LXC. Proceed(y/n)?" yn case $yn in From a92f212640553a5b3963092580e78cde91b11c91 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 10:55:36 -0400 Subject: [PATCH 36/72] Update uptimekuma-v3.sh --- ct/uptimekuma-v3.sh | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/ct/uptimekuma-v3.sh b/ct/uptimekuma-v3.sh index 9697a04a..3e746b4f 100644 --- a/ct/uptimekuma-v3.sh +++ b/ct/uptimekuma-v3.sh @@ -1,7 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob - +#!/usr/bin/env bash NEXTID=$(pvesh get /cluster/nextid) INTEGER='^[0-9]+$' YW=`echo "\033[33m"` @@ -16,6 +13,23 @@ HOLD="-" CM="${GN}✓${CL}" APP="Uptime Kuma" NSAPP=$(echo ${APP,,} | tr -d ' ') +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} + while true; do read -p "This will create a New ${APP} LXC. Proceed(y/n)?" yn case $yn in From 939ddae542bf7aa03af3cdac6cceebb04c76acb6 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 10:56:13 -0400 Subject: [PATCH 37/72] Update vaultwarden-v3.sh --- ct/vaultwarden-v3.sh | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/ct/vaultwarden-v3.sh b/ct/vaultwarden-v3.sh index 7745aff4..657854fb 100644 --- a/ct/vaultwarden-v3.sh +++ b/ct/vaultwarden-v3.sh @@ -1,7 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob - +#!/usr/bin/env bash NEXTID=$(pvesh get /cluster/nextid) INTEGER='^[0-9]+$' YW=`echo "\033[33m"` @@ -16,6 +13,23 @@ HOLD="-" CM="${GN}✓${CL}" APP="Vaultwarden" NSAPP=$(echo ${APP,,} | tr -d ' ') +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} + while true; do read -p "This will create a New ${APP} LXC. Proceed(y/n)?" yn case $yn in From 12ce47f4be550e7dcc57c52b7e1994276490e50e Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 10:56:47 -0400 Subject: [PATCH 38/72] Update wireguard-v3.sh --- ct/wireguard-v3.sh | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/ct/wireguard-v3.sh b/ct/wireguard-v3.sh index b1c0afd1..0166a5f0 100644 --- a/ct/wireguard-v3.sh +++ b/ct/wireguard-v3.sh @@ -1,7 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob - +#!/usr/bin/env bash NEXTID=$(pvesh get /cluster/nextid) INTEGER='^[0-9]+$' YW=`echo "\033[33m"` @@ -16,6 +13,23 @@ HOLD="-" CM="${GN}✓${CL}" APP="Wireguard" NSAPP=$(echo ${APP,,} | tr -d ' ') +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} + while true; do read -p "This will create a New ${APP} LXC. Proceed(y/n)?" yn case $yn in From 04611764b494b151b8539ac3b482b869dfe8a350 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 10:57:45 -0400 Subject: [PATCH 39/72] Update zigbee2mqtt-v3.sh --- ct/zigbee2mqtt-v3.sh | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/ct/zigbee2mqtt-v3.sh b/ct/zigbee2mqtt-v3.sh index f5f66112..833e4cd1 100644 --- a/ct/zigbee2mqtt-v3.sh +++ b/ct/zigbee2mqtt-v3.sh @@ -1,6 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob +#!/usr/bin/env bash NEXTID=$(pvesh get /cluster/nextid) INTEGER='^[0-9]+$' YW=`echo "\033[33m"` @@ -16,6 +14,23 @@ CM="${GN}✓${CL}" CROSS="${RD}✗${CL}" APP="Zigbee2MQTT" NSAPP=$(echo ${APP,,} | tr -d ' ') +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} + while true; do read -p "This will create a New ${APP} LXC. Proceed(y/n)?" yn case $yn in From a37523e9fe3d2f1d323a99b53e627ef67f615849 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 10:58:20 -0400 Subject: [PATCH 40/72] Update zwavejs2mqtt-v3.sh --- ct/zwavejs2mqtt-v3.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ct/zwavejs2mqtt-v3.sh b/ct/zwavejs2mqtt-v3.sh index f9c495d8..2586c588 100644 --- a/ct/zwavejs2mqtt-v3.sh +++ b/ct/zwavejs2mqtt-v3.sh @@ -1,6 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob +#!/usr/bin/env bash NEXTID=$(pvesh get /cluster/nextid) INTEGER='^[0-9]+$' YW=`echo "\033[33m"` From 64b019e19226ed914a9e59067f05eca86c9f4919 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 11:05:59 -0400 Subject: [PATCH 41/72] Update adguard-install.sh --- setup/adguard-install.sh | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/setup/adguard-install.sh b/setup/adguard-install.sh index f2736eba..1837bc32 100644 --- a/setup/adguard-install.sh +++ b/setup/adguard-install.sh @@ -1,6 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob +#!/usr/bin/env bash YW=`echo "\033[33m"` RD=`echo "\033[01;31m"` BL=`echo "\033[36m"` @@ -13,6 +11,22 @@ CM="${GN}✓${CL}" CROSS="${RD}✗${CL}" BFR="\\r\\033[K" HOLD="-" +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} function msg_info() { local msg="$1" From c5118c256489e79f8ed291425dde94ce3d63722a Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 11:06:36 -0400 Subject: [PATCH 42/72] Update daemonsync-install.sh --- setup/daemonsync-install.sh | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/setup/daemonsync-install.sh b/setup/daemonsync-install.sh index 367bf16e..db7aff68 100644 --- a/setup/daemonsync-install.sh +++ b/setup/daemonsync-install.sh @@ -1,6 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob +#!/usr/bin/env bash YW=`echo "\033[33m"` RD=`echo "\033[01;31m"` BL=`echo "\033[36m"` @@ -13,6 +11,22 @@ CM="${GN}✓${CL}" CROSS="${RD}✗${CL}" BFR="\\r\\033[K" HOLD="-" +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} function msg_info() { local msg="$1" From 0b6c248561b74b5c5eba4194ec297d2d08f5cb0c Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 11:07:06 -0400 Subject: [PATCH 43/72] Update dashy-install.sh --- setup/dashy-install.sh | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/setup/dashy-install.sh b/setup/dashy-install.sh index f651c15a..afe8fed7 100644 --- a/setup/dashy-install.sh +++ b/setup/dashy-install.sh @@ -1,6 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob +#!/usr/bin/env bash YW=`echo "\033[33m"` RD=`echo "\033[01;31m"` BL=`echo "\033[36m"` @@ -13,6 +11,22 @@ CM="${GN}✓${CL}" CROSS="${RD}✗${CL}" BFR="\\r\\033[K" HOLD="-" +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} function msg_info() { local msg="$1" From 49f613fbb7e0778d0eed60bac0d1781f91aa980a Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 11:07:44 -0400 Subject: [PATCH 44/72] Update docker-install.sh --- setup/docker-install.sh | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/setup/docker-install.sh b/setup/docker-install.sh index e5949a3d..ff9ef82a 100644 --- a/setup/docker-install.sh +++ b/setup/docker-install.sh @@ -1,6 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob +#!/usr/bin/env bash YW=`echo "\033[33m"` RD=`echo "\033[01;31m"` BL=`echo "\033[36m"` @@ -13,6 +11,22 @@ CM="${GN}✓${CL}" CROSS="${RD}✗${CL}" BFR="\\r\\033[K" HOLD="-" +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} function msg_info() { local msg="$1" From a62c379c12012b7e3585848b9d572bcecf00aa5a Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 11:08:14 -0400 Subject: [PATCH 45/72] Update esphome-install.sh --- setup/esphome-install.sh | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/setup/esphome-install.sh b/setup/esphome-install.sh index bd959777..531de099 100644 --- a/setup/esphome-install.sh +++ b/setup/esphome-install.sh @@ -1,7 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob - +#!/usr/bin/env bash YW=`echo "\033[33m"` RD=`echo "\033[01;31m"` BL=`echo "\033[36m"` @@ -14,6 +11,22 @@ CM="${GN}✓${CL}" CROSS="${RD}✗${CL}" BFR="\\r\\033[K" HOLD="-" +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} function msg_info() { local msg="$1" From a9dc03e8d3dd2e80a6e8ddac1bb82e0daf2b4aa9 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 11:08:48 -0400 Subject: [PATCH 46/72] Update grafana-install.sh --- setup/grafana-install.sh | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/setup/grafana-install.sh b/setup/grafana-install.sh index eb69dc53..c502fbfb 100644 --- a/setup/grafana-install.sh +++ b/setup/grafana-install.sh @@ -1,6 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob +#!/usr/bin/env bash YW=`echo "\033[33m"` RD=`echo "\033[01;31m"` BL=`echo "\033[36m"` @@ -13,6 +11,22 @@ CM="${GN}✓${CL}" CROSS="${RD}✗${CL}" BFR="\\r\\033[K" HOLD="-" +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} function msg_info() { local msg="$1" From aee8a6201f6a43fe4140f416064415803c3ab355 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 11:09:20 -0400 Subject: [PATCH 47/72] Update heimdalldashboard-install.sh --- setup/heimdalldashboard-install.sh | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/setup/heimdalldashboard-install.sh b/setup/heimdalldashboard-install.sh index c08cb854..e393d409 100644 --- a/setup/heimdalldashboard-install.sh +++ b/setup/heimdalldashboard-install.sh @@ -1,6 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob +#!/usr/bin/env bash YW=`echo "\033[33m"` RD=`echo "\033[01;31m"` BL=`echo "\033[36m"` @@ -13,6 +11,22 @@ CM="${GN}✓${CL}" CROSS="${RD}✗${CL}" BFR="\\r\\033[K" HOLD="-" +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} function msg_info() { local msg="$1" From 3aaace836b56663292f1ace40873450b6a9cca70 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 11:09:58 -0400 Subject: [PATCH 48/72] Update homeassistant-install.sh --- setup/homeassistant-install.sh | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/setup/homeassistant-install.sh b/setup/homeassistant-install.sh index 1bbfbe22..1e91c7c4 100644 --- a/setup/homeassistant-install.sh +++ b/setup/homeassistant-install.sh @@ -1,7 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob - +#!/usr/bin/env bash YW=`echo "\033[33m"` RD=`echo "\033[01;31m"` BL=`echo "\033[36m"` @@ -14,6 +11,22 @@ CM="${GN}✓${CL}" CROSS="${RD}✗${CL}" BFR="\\r\\033[K" HOLD="-" +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} function msg_info() { local msg="$1" From 99a3fde53e4db53359cbf7b0049fe170b74f663b Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 11:10:53 -0400 Subject: [PATCH 49/72] Update homebridge-install.sh --- setup/homebridge-install.sh | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/setup/homebridge-install.sh b/setup/homebridge-install.sh index 1592c674..6d612ed6 100644 --- a/setup/homebridge-install.sh +++ b/setup/homebridge-install.sh @@ -1,6 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob +#!/usr/bin/env bash YW=`echo "\033[33m"` RD=`echo "\033[01;31m"` BL=`echo "\033[36m"` @@ -13,6 +11,22 @@ CM="${GN}✓${CL}" CROSS="${RD}✗${CL}" BFR="\\r\\033[K" HOLD="-" +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} function msg_info() { local msg="$1" From b6463d39288ea8ad34386a837fb0b2727fc260fe Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 11:11:26 -0400 Subject: [PATCH 50/72] Update influxdb-install.sh --- setup/influxdb-install.sh | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/setup/influxdb-install.sh b/setup/influxdb-install.sh index a8e81043..15d10f2a 100644 --- a/setup/influxdb-install.sh +++ b/setup/influxdb-install.sh @@ -1,6 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob +#!/usr/bin/env bash YW=`echo "\033[33m"` RD=`echo "\033[01;31m"` BL=`echo "\033[36m"` @@ -13,6 +11,22 @@ CM="${GN}✓${CL}" CROSS="${RD}✗${CL}" BFR="\\r\\033[K" HOLD="-" +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} function msg_info() { local msg="$1" From 94e93591fdd10b0d44871b4fc70740c4692d97c8 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 11:11:59 -0400 Subject: [PATCH 51/72] Update iobroker-install.sh --- setup/iobroker-install.sh | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/setup/iobroker-install.sh b/setup/iobroker-install.sh index c65b9dc3..66ac393a 100644 --- a/setup/iobroker-install.sh +++ b/setup/iobroker-install.sh @@ -1,6 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob +#!/usr/bin/env bash YW=`echo "\033[33m"` RD=`echo "\033[01;31m"` BL=`echo "\033[36m"` @@ -13,6 +11,22 @@ CM="${GN}✓${CL}" CROSS="${RD}✗${CL}" BFR="\\r\\033[K" HOLD="-" +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} function msg_info() { local msg="$1" From 0e4daf6c4b34ef871bfb39deb8408994290cdfde Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 11:12:31 -0400 Subject: [PATCH 52/72] Update jellyfin-install.sh --- setup/jellyfin-install.sh | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/setup/jellyfin-install.sh b/setup/jellyfin-install.sh index 293f8e6e..b578247f 100644 --- a/setup/jellyfin-install.sh +++ b/setup/jellyfin-install.sh @@ -1,6 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob +#!/usr/bin/env bash YW=`echo "\033[33m"` RD=`echo "\033[01;31m"` BL=`echo "\033[36m"` @@ -13,6 +11,22 @@ CM="${GN}✓${CL}" CROSS="${RD}✗${CL}" BFR="\\r\\033[K" HOLD="-" +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} function msg_info() { local msg="$1" From 96beb29701dfb1b021d7328199a056f76a5e71b3 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 11:13:01 -0400 Subject: [PATCH 53/72] Update mariadb-install.sh --- setup/mariadb-install.sh | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/setup/mariadb-install.sh b/setup/mariadb-install.sh index b135d6f8..049fc81f 100644 --- a/setup/mariadb-install.sh +++ b/setup/mariadb-install.sh @@ -1,6 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob +#!/usr/bin/env bash YW=`echo "\033[33m"` RD=`echo "\033[01;31m"` BL=`echo "\033[36m"` @@ -13,6 +11,22 @@ CM="${GN}✓${CL}" CROSS="${RD}✗${CL}" BFR="\\r\\033[K" HOLD="-" +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} function msg_info() { local msg="$1" From 5d6e35dc3f585d58be5c0f309be583cb23e32090 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 11:13:36 -0400 Subject: [PATCH 54/72] Update meshcentral-install.sh --- setup/meshcentral-install.sh | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/setup/meshcentral-install.sh b/setup/meshcentral-install.sh index 703f3fd9..0077a99d 100644 --- a/setup/meshcentral-install.sh +++ b/setup/meshcentral-install.sh @@ -1,6 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob +#!/usr/bin/env bash YW=`echo "\033[33m"` RD=`echo "\033[01;31m"` BL=`echo "\033[36m"` @@ -13,6 +11,22 @@ CM="${GN}✓${CL}" CROSS="${RD}✗${CL}" BFR="\\r\\033[K" HOLD="-" +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} function msg_info() { local msg="$1" From 52a1b3c86ba82c532ecfefbc5c535e296f18783e Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 11:14:09 -0400 Subject: [PATCH 55/72] Update motioneye-install.sh --- setup/motioneye-install.sh | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/setup/motioneye-install.sh b/setup/motioneye-install.sh index 2a001cf9..e2934db9 100644 --- a/setup/motioneye-install.sh +++ b/setup/motioneye-install.sh @@ -1,6 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob +#!/usr/bin/env bash YW=`echo "\033[33m"` RD=`echo "\033[01;31m"` BL=`echo "\033[36m"` @@ -13,6 +11,22 @@ CM="${GN}✓${CL}" CROSS="${RD}✗${CL}" BFR="\\r\\033[K" HOLD="-" +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} function msg_info() { local msg="$1" From 48065741f005644e29da9d1c8430149664912e5a Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 11:14:44 -0400 Subject: [PATCH 56/72] Update mqtt-install.sh --- setup/mqtt-install.sh | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/setup/mqtt-install.sh b/setup/mqtt-install.sh index fcab334d..a6b5a712 100644 --- a/setup/mqtt-install.sh +++ b/setup/mqtt-install.sh @@ -1,6 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob +#!/usr/bin/env bash YW=`echo "\033[33m"` RD=`echo "\033[01;31m"` BL=`echo "\033[36m"` @@ -13,6 +11,22 @@ CM="${GN}✓${CL}" CROSS="${RD}✗${CL}" BFR="\\r\\033[K" HOLD="-" +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} function msg_info() { local msg="$1" From cf63556b824197c6a9acc603dd17e53e357f0e92 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 11:15:17 -0400 Subject: [PATCH 57/72] Update nginx-proxy-manager-install.sh --- setup/nginx-proxy-manager-install.sh | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/setup/nginx-proxy-manager-install.sh b/setup/nginx-proxy-manager-install.sh index b8c0c880..caa2e0f8 100644 --- a/setup/nginx-proxy-manager-install.sh +++ b/setup/nginx-proxy-manager-install.sh @@ -1,6 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob +#!/usr/bin/env bash YW=`echo "\033[33m"` RD=`echo "\033[01;31m"` BL=`echo "\033[36m"` @@ -13,6 +11,22 @@ CM="${GN}✓${CL}" CROSS="${RD}✗${CL}" BFR="\\r\\033[K" HOLD="-" +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} function msg_info() { local msg="$1" From c9f9840d07705ca1656a2ce1680f51b0b65fd825 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 11:15:53 -0400 Subject: [PATCH 58/72] Update nocodb-install.sh --- setup/nocodb-install.sh | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/setup/nocodb-install.sh b/setup/nocodb-install.sh index 48464294..49296b42 100644 --- a/setup/nocodb-install.sh +++ b/setup/nocodb-install.sh @@ -1,6 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob +#!/usr/bin/env bash YW=`echo "\033[33m"` RD=`echo "\033[01;31m"` BL=`echo "\033[36m"` @@ -13,6 +11,22 @@ CM="${GN}✓${CL}" CROSS="${RD}✗${CL}" BFR="\\r\\033[K" HOLD="-" +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} function msg_info() { local msg="$1" From 4b565f251fc097f472c46f2432b684e529793f38 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 11:16:28 -0400 Subject: [PATCH 59/72] Update node-red-install.sh --- setup/node-red-install.sh | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/setup/node-red-install.sh b/setup/node-red-install.sh index 948a8261..0a138e21 100644 --- a/setup/node-red-install.sh +++ b/setup/node-red-install.sh @@ -1,6 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob +#!/usr/bin/env bash YW=`echo "\033[33m"` RD=`echo "\033[01;31m"` BL=`echo "\033[36m"` @@ -13,6 +11,22 @@ CM="${GN}✓${CL}" CROSS="${RD}✗${CL}" BFR="\\r\\033[K" HOLD="-" +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} function msg_info() { local msg="$1" From 6d6bfcd07776e0cf1e2d4f575f6a302d0d9dbf50 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 11:17:06 -0400 Subject: [PATCH 60/72] Update omada-install.sh --- setup/omada-install.sh | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/setup/omada-install.sh b/setup/omada-install.sh index b288f5ea..9c654141 100644 --- a/setup/omada-install.sh +++ b/setup/omada-install.sh @@ -1,6 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob +#!/usr/bin/env bash YW=`echo "\033[33m"` RD=`echo "\033[01;31m"` BL=`echo "\033[36m"` @@ -13,6 +11,22 @@ CM="${GN}✓${CL}" CROSS="${RD}✗${CL}" BFR="\\r\\033[K" HOLD="-" +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} function msg_info() { local msg="$1" From e441bcaeb6376a361b91d75b96ab9c003809387f Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 11:17:39 -0400 Subject: [PATCH 61/72] Update photoprism-install.sh --- setup/photoprism-install.sh | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/setup/photoprism-install.sh b/setup/photoprism-install.sh index 425dcb31..1e134b52 100644 --- a/setup/photoprism-install.sh +++ b/setup/photoprism-install.sh @@ -1,6 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob +#!/usr/bin/env bash YW=`echo "\033[33m"` RD=`echo "\033[01;31m"` BL=`echo "\033[36m"` @@ -13,6 +11,22 @@ CM="${GN}✓${CL}" CROSS="${RD}✗${CL}" BFR="\\r\\033[K" HOLD="-" +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} function msg_info() { local msg="$1" From b457091ad03f74e10f9d793a0bb267fcf4850169 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 11:18:04 -0400 Subject: [PATCH 62/72] Update pihole-install.sh --- setup/pihole-install.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/setup/pihole-install.sh b/setup/pihole-install.sh index 89eda75a..632a2662 100644 --- a/setup/pihole-install.sh +++ b/setup/pihole-install.sh @@ -1,6 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob +#!/usr/bin/env bash YW=`echo "\033[33m"` RD=`echo "\033[01;31m"` BL=`echo "\033[36m"` From 94682afe92fbb37cef8b890e99ec292b97399e65 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 11:18:35 -0400 Subject: [PATCH 63/72] Update plex-install.sh --- setup/plex-install.sh | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/setup/plex-install.sh b/setup/plex-install.sh index 349420f6..454754ba 100644 --- a/setup/plex-install.sh +++ b/setup/plex-install.sh @@ -1,6 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob +#!/usr/bin/env bash YW=`echo "\033[33m"` RD=`echo "\033[01;31m"` BL=`echo "\033[36m"` @@ -13,6 +11,22 @@ CM="${GN}✓${CL}" CROSS="${RD}✗${CL}" BFR="\\r\\033[K" HOLD="-" +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} function msg_info() { local msg="$1" From 6a7134cd8b5e834c1d9f58f75edba6ca5dadb1a4 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 11:19:06 -0400 Subject: [PATCH 64/72] Update podman-homeassistant-install.sh --- setup/podman-homeassistant-install.sh | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/setup/podman-homeassistant-install.sh b/setup/podman-homeassistant-install.sh index 4a78e08f..4f5efb07 100644 --- a/setup/podman-homeassistant-install.sh +++ b/setup/podman-homeassistant-install.sh @@ -1,7 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob - +#!/usr/bin/env bash YW=`echo "\033[33m"` RD=`echo "\033[01;31m"` BL=`echo "\033[36m"` @@ -14,6 +11,22 @@ CM="${GN}✓${CL}" CROSS="${RD}✗${CL}" BFR="\\r\\033[K" HOLD="-" +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} function msg_info() { local msg="$1" From d3b4ca4beaf3835d6814aa66615887c278c25d0f Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 11:19:33 -0400 Subject: [PATCH 65/72] Update technitiumdns-install.sh --- setup/technitiumdns-install.sh | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/setup/technitiumdns-install.sh b/setup/technitiumdns-install.sh index e3f84efd..985f77d3 100644 --- a/setup/technitiumdns-install.sh +++ b/setup/technitiumdns-install.sh @@ -1,6 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob +#!/usr/bin/env bash YW=`echo "\033[33m"` RD=`echo "\033[01;31m"` BL=`echo "\033[36m"` @@ -13,6 +11,22 @@ CM="${GN}✓${CL}" CROSS="${RD}✗${CL}" BFR="\\r\\033[K" HOLD="-" +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} function msg_info() { local msg="$1" From 3de976cdc963d4a55705d25feb632e47073fdf20 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 11:20:06 -0400 Subject: [PATCH 66/72] Update ubuntu-install.sh --- setup/ubuntu-install.sh | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/setup/ubuntu-install.sh b/setup/ubuntu-install.sh index 271dea13..dff19754 100644 --- a/setup/ubuntu-install.sh +++ b/setup/ubuntu-install.sh @@ -1,6 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob +#!/usr/bin/env bash YW=`echo "\033[33m"` RD=`echo "\033[01;31m"` BL=`echo "\033[36m"` @@ -13,6 +11,22 @@ CM="${GN}✓${CL}" CROSS="${RD}✗${CL}" BFR="\\r\\033[K" HOLD="-" +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} function msg_info() { local msg="$1" From f24a53fcf615f0a25e421a602ca8dc046797e140 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 11:20:39 -0400 Subject: [PATCH 67/72] Update unifi-install.sh --- setup/unifi-install.sh | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/setup/unifi-install.sh b/setup/unifi-install.sh index f190984b..821dd303 100644 --- a/setup/unifi-install.sh +++ b/setup/unifi-install.sh @@ -1,7 +1,5 @@ -#!/usr/bin/env bash -ex +#!/usr/bin/env bash #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 -set -euo pipefail -shopt -s inherit_errexit nullglob YW=`echo "\033[33m"` RD=`echo "\033[01;31m"` BL=`echo "\033[36m"` @@ -14,6 +12,22 @@ CM="${GN}✓${CL}" CROSS="${RD}✗${CL}" BFR="\\r\\033[K" HOLD="-" +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} function msg_info() { local msg="$1" From 1631e6644049e6bd5e1ad2c477de3a531ce51983 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 11:21:11 -0400 Subject: [PATCH 68/72] Update uptimekuma-install.sh --- setup/uptimekuma-install.sh | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/setup/uptimekuma-install.sh b/setup/uptimekuma-install.sh index 006eedc6..d44d4815 100644 --- a/setup/uptimekuma-install.sh +++ b/setup/uptimekuma-install.sh @@ -1,6 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob +#!/usr/bin/env bash YW=`echo "\033[33m"` RD=`echo "\033[01;31m"` BL=`echo "\033[36m"` @@ -13,6 +11,22 @@ CM="${GN}✓${CL}" CROSS="${RD}✗${CL}" BFR="\\r\\033[K" HOLD="-" +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} function msg_info() { local msg="$1" From a5909fb4bf92471dde69f389d72694c1a114c815 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 11:21:41 -0400 Subject: [PATCH 69/72] Update vaultwarden-install.sh --- setup/vaultwarden-install.sh | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/setup/vaultwarden-install.sh b/setup/vaultwarden-install.sh index d41751fe..6d2614b8 100644 --- a/setup/vaultwarden-install.sh +++ b/setup/vaultwarden-install.sh @@ -1,6 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob +#!/usr/bin/env bash YW=`echo "\033[33m"` RD=`echo "\033[01;31m"` BL=`echo "\033[36m"` @@ -13,6 +11,22 @@ CM="${GN}✓${CL}" CROSS="${RD}✗${CL}" BFR="\\r\\033[K" HOLD="-" +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} function msg_info() { local msg="$1" From b25b931abe807773b4928eec5cf92b86d0052f63 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 11:22:09 -0400 Subject: [PATCH 70/72] Update wireguard-install.sh --- setup/wireguard-install.sh | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/setup/wireguard-install.sh b/setup/wireguard-install.sh index 9c7472cc..db50be80 100644 --- a/setup/wireguard-install.sh +++ b/setup/wireguard-install.sh @@ -1,6 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob +#!/usr/bin/env bash YW=`echo "\033[33m"` RD=`echo "\033[01;31m"` BL=`echo "\033[36m"` @@ -13,6 +11,22 @@ CM="${GN}✓${CL}" CROSS="${RD}✗${CL}" BFR="\\r\\033[K" HOLD="-" +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} function msg_info() { local msg="$1" From 03527079d57f8bbbd424cff1fcc22aa800f236a8 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 11:22:35 -0400 Subject: [PATCH 71/72] Update zigbee2mqtt-install.sh --- setup/zigbee2mqtt-install.sh | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/setup/zigbee2mqtt-install.sh b/setup/zigbee2mqtt-install.sh index cc64eb66..13fa965b 100644 --- a/setup/zigbee2mqtt-install.sh +++ b/setup/zigbee2mqtt-install.sh @@ -1,7 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob - +#!/usr/bin/env bash YW=`echo "\033[33m"` RD=`echo "\033[01;31m"` BL=`echo "\033[36m"` @@ -14,6 +11,22 @@ CM="${GN}✓${CL}" CROSS="${RD}✗${CL}" BFR="\\r\\033[K" HOLD="-" +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} function msg_info() { local msg="$1" From c8cf7cebcae2aa432fdab1372545b202c6c91006 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 25 Apr 2022 11:23:01 -0400 Subject: [PATCH 72/72] Update zwavejs2mqtt-install.sh --- setup/zwavejs2mqtt-install.sh | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/setup/zwavejs2mqtt-install.sh b/setup/zwavejs2mqtt-install.sh index 3b6f1824..2f291ca2 100644 --- a/setup/zwavejs2mqtt-install.sh +++ b/setup/zwavejs2mqtt-install.sh @@ -1,7 +1,4 @@ -#!/usr/bin/env bash -ex -set -euo pipefail -shopt -s inherit_errexit nullglob - +#!/usr/bin/env bash YW=`echo "\033[33m"` RD=`echo "\033[01;31m"` BL=`echo "\033[36m"` @@ -14,6 +11,22 @@ CM="${GN}✓${CL}" CROSS="${RD}✗${CL}" BFR="\\r\\033[K" HOLD="-" +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail +shopt -s expand_aliases +alias die='EXIT=$? LINE=$LINENO error_exit' +trap die ERR + +function error_exit() { + trap - ERR + local reason="Unknown failure occured." + local msg="${1:-$reason}" + local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE" + echo -e "$flag $msg" 1>&2 + exit $EXIT +} function msg_info() { local msg="$1"