From 1a8a13423cb21ad37fd4a9fc17e274e7377add35 Mon Sep 17 00:00:00 2001 From: tteckster Date: Fri, 27 Jan 2023 21:15:50 -0500 Subject: [PATCH] immediately enforce disable IPv6 (#993) --- install/adguard-v5-install.sh | 5 +++-- install/autobrr-v5-install.sh | 5 +++-- install/blocky-v5-install.sh | 5 +++-- install/casaos-v5-install.sh | 5 +++-- install/changedetection-v5-install.sh | 5 +++-- install/cronicle-v5-install.sh | 5 +++-- install/daemonsync-v5-install.sh | 5 +++-- install/dashy-v5-install.sh | 5 +++-- install/debian-v5-install.sh | 5 +++-- install/deconz-v5-install.sh | 5 +++-- install/deluge-v5-install.sh | 5 +++-- install/docker-v5-install.sh | 5 +++-- install/emby-v5-install.sh | 5 +++-- install/emqx-v5-install.sh | 5 +++-- install/esphome-v5-install.sh | 5 +++-- install/grafana-v5-install.sh | 5 +++-- install/grocy-v5-install.sh | 5 +++-- install/heimdalldashboard-v5-install.sh | 5 +++-- install/homeassistant-core-v5-install.sh | 5 +++-- install/homeassistant-v5-install.sh | 5 +++-- install/homebridge-v5-install.sh | 5 +++-- install/homepage-v5-install.sh | 5 +++-- install/homer-v5-install.sh | 5 +++-- install/hyperion-v5-install.sh | 5 +++-- install/influxdb-v5-install.sh | 5 +++-- install/iobroker-v5-install.sh | 5 +++-- install/jellyfin-v5-install.sh | 5 +++-- install/k0s-v5-install.sh | 5 +++-- install/kavita-v5-install.sh | 5 +++-- install/keycloak-v5-install.sh | 5 +++-- install/lidarr-v5-install.sh | 5 +++-- install/magicmirror-v5-install.sh | 5 +++-- install/mariadb-v5-install.sh | 5 +++-- install/meshcentral-v5-install.sh | 5 +++-- install/motioneye-v5-install.sh | 5 +++-- install/mqtt-v5-install.sh | 5 +++-- install/n8n-v5-install.sh | 5 +++-- install/navidrome-v5-install.sh | 5 +++-- install/nextcloudpi-v5-install.sh | 5 +++-- install/nginxproxymanager-v5-install.sh | 5 +++-- install/nocodb-v5-install.sh | 5 +++-- install/node-red-v5-install.sh | 5 +++-- install/omada-v5-install.sh | 5 +++-- install/omv-v5-install.sh | 5 +++-- install/openhab-v5-install.sh | 5 +++-- install/paperless-ngx-v5-install.sh | 5 +++-- install/photoprism-v5-install.sh | 5 +++-- install/pihole-v5-install.sh | 5 +++-- install/plex-v5-install.sh | 5 +++-- install/podman-homeassistant-v5-install.sh | 5 +++-- install/podman-v5-install.sh | 5 +++-- install/postgresql-v5-install.sh | 5 +++-- install/prometheus-v5-install.sh | 5 +++-- install/prowlarr-v5-install.sh | 5 +++-- install/radarr-v5-install.sh | 5 +++-- install/readarr-v5-install.sh | 5 +++-- install/sabnzbd-v5-install.sh | 5 +++-- install/scrypted-v5-install.sh | 5 +++-- install/shinobi-v5-install.sh | 5 +++-- install/sonarr-v5-install.sh | 5 +++-- install/syncthing-v5-install.sh | 5 +++-- install/tdarr-v5-install.sh | 5 +++-- install/technitiumdns-v5-install.sh | 5 +++-- install/transmission-v5-install.sh | 5 +++-- install/trilium-v5-install.sh | 5 +++-- install/ubuntu-v5-install.sh | 5 +++-- install/umbrel-v5-install.sh | 5 +++-- install/unifi-v5-install.sh | 5 +++-- install/uptimekuma-v5-install.sh | 5 +++-- install/vaultwarden-v5-install.sh | 5 +++-- install/whisparr-v5-install.sh | 5 +++-- install/whoogle-v5-install.sh | 5 +++-- install/wikijs-v5-install.sh | 5 +++-- install/wireguard-v5-install.sh | 5 +++-- install/yunohost-v5-install.sh | 5 +++-- install/zigbee2mqtt-v5-install.sh | 5 +++-- install/zwave-js-ui-v5-install.sh | 5 +++-- 77 files changed, 231 insertions(+), 154 deletions(-) diff --git a/install/adguard-v5-install.sh b/install/adguard-v5-install.sh index 7b3711ab..497b3a81 100644 --- a/install/adguard-v5-install.sh +++ b/install/adguard-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/autobrr-v5-install.sh b/install/autobrr-v5-install.sh index c66c362c..9c54ff2a 100644 --- a/install/autobrr-v5-install.sh +++ b/install/autobrr-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/blocky-v5-install.sh b/install/blocky-v5-install.sh index f4f9d698..b1b80f4b 100644 --- a/install/blocky-v5-install.sh +++ b/install/blocky-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/casaos-v5-install.sh b/install/casaos-v5-install.sh index 98e7ae77..1a2358fc 100644 --- a/install/casaos-v5-install.sh +++ b/install/casaos-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/changedetection-v5-install.sh b/install/changedetection-v5-install.sh index da5891f1..bf528d16 100644 --- a/install/changedetection-v5-install.sh +++ b/install/changedetection-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/cronicle-v5-install.sh b/install/cronicle-v5-install.sh index dc0dbd07..85be2f0a 100644 --- a/install/cronicle-v5-install.sh +++ b/install/cronicle-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/daemonsync-v5-install.sh b/install/daemonsync-v5-install.sh index f5f9408b..4281260e 100644 --- a/install/daemonsync-v5-install.sh +++ b/install/daemonsync-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/dashy-v5-install.sh b/install/dashy-v5-install.sh index 4e4a084f..14f76bef 100644 --- a/install/dashy-v5-install.sh +++ b/install/dashy-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/debian-v5-install.sh b/install/debian-v5-install.sh index f89c2ffb..3a525e6b 100644 --- a/install/debian-v5-install.sh +++ b/install/debian-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/deconz-v5-install.sh b/install/deconz-v5-install.sh index 5b689847..0235e7de 100644 --- a/install/deconz-v5-install.sh +++ b/install/deconz-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/deluge-v5-install.sh b/install/deluge-v5-install.sh index 963dbe93..19f9449d 100644 --- a/install/deluge-v5-install.sh +++ b/install/deluge-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/docker-v5-install.sh b/install/docker-v5-install.sh index 5d4d19bb..762327dd 100644 --- a/install/docker-v5-install.sh +++ b/install/docker-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/emby-v5-install.sh b/install/emby-v5-install.sh index 29d38f1b..ffe06b70 100644 --- a/install/emby-v5-install.sh +++ b/install/emby-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/emqx-v5-install.sh b/install/emqx-v5-install.sh index 26b8daa5..c8fadb4b 100644 --- a/install/emqx-v5-install.sh +++ b/install/emqx-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/esphome-v5-install.sh b/install/esphome-v5-install.sh index e4fbcc58..0504c6c9 100644 --- a/install/esphome-v5-install.sh +++ b/install/esphome-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/grafana-v5-install.sh b/install/grafana-v5-install.sh index d9dbcdfc..29e171c9 100644 --- a/install/grafana-v5-install.sh +++ b/install/grafana-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/grocy-v5-install.sh b/install/grocy-v5-install.sh index c56342c7..d847d5a6 100644 --- a/install/grocy-v5-install.sh +++ b/install/grocy-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/heimdalldashboard-v5-install.sh b/install/heimdalldashboard-v5-install.sh index a1fc064b..a94d230d 100644 --- a/install/heimdalldashboard-v5-install.sh +++ b/install/heimdalldashboard-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/homeassistant-core-v5-install.sh b/install/homeassistant-core-v5-install.sh index 2b3a3333..c4663502 100644 --- a/install/homeassistant-core-v5-install.sh +++ b/install/homeassistant-core-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/homeassistant-v5-install.sh b/install/homeassistant-v5-install.sh index cb5c9ccf..eaed502e 100644 --- a/install/homeassistant-v5-install.sh +++ b/install/homeassistant-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/homebridge-v5-install.sh b/install/homebridge-v5-install.sh index 3aedb557..6526111b 100644 --- a/install/homebridge-v5-install.sh +++ b/install/homebridge-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/homepage-v5-install.sh b/install/homepage-v5-install.sh index b2d8ada4..eca56674 100644 --- a/install/homepage-v5-install.sh +++ b/install/homepage-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/homer-v5-install.sh b/install/homer-v5-install.sh index 9f2db9fa..e4f564d5 100644 --- a/install/homer-v5-install.sh +++ b/install/homer-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/hyperion-v5-install.sh b/install/hyperion-v5-install.sh index b3eed082..62dd33fc 100644 --- a/install/hyperion-v5-install.sh +++ b/install/hyperion-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/influxdb-v5-install.sh b/install/influxdb-v5-install.sh index 7efc4406..f5becf2e 100644 --- a/install/influxdb-v5-install.sh +++ b/install/influxdb-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/iobroker-v5-install.sh b/install/iobroker-v5-install.sh index a59032a8..96db7e0b 100644 --- a/install/iobroker-v5-install.sh +++ b/install/iobroker-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/jellyfin-v5-install.sh b/install/jellyfin-v5-install.sh index 17683b67..99df1d57 100644 --- a/install/jellyfin-v5-install.sh +++ b/install/jellyfin-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/k0s-v5-install.sh b/install/k0s-v5-install.sh index ab239220..a87798ad 100644 --- a/install/k0s-v5-install.sh +++ b/install/k0s-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/kavita-v5-install.sh b/install/kavita-v5-install.sh index bbf7bc1a..b76e7979 100644 --- a/install/kavita-v5-install.sh +++ b/install/kavita-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -14,7 +15,7 @@ CROSS="${RD}✗${CL}" BFR="\\r\\033[K" HOLD="-" -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/keycloak-v5-install.sh b/install/keycloak-v5-install.sh index 53e03b5c..4370ce4d 100644 --- a/install/keycloak-v5-install.sh +++ b/install/keycloak-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/lidarr-v5-install.sh b/install/lidarr-v5-install.sh index f541f553..653c2d7e 100644 --- a/install/lidarr-v5-install.sh +++ b/install/lidarr-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/magicmirror-v5-install.sh b/install/magicmirror-v5-install.sh index 9f47644a..f347ba92 100644 --- a/install/magicmirror-v5-install.sh +++ b/install/magicmirror-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/mariadb-v5-install.sh b/install/mariadb-v5-install.sh index a705ad23..7e5b2265 100644 --- a/install/mariadb-v5-install.sh +++ b/install/mariadb-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/meshcentral-v5-install.sh b/install/meshcentral-v5-install.sh index c5e5ed15..e4085bed 100644 --- a/install/meshcentral-v5-install.sh +++ b/install/meshcentral-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/motioneye-v5-install.sh b/install/motioneye-v5-install.sh index 6dd05e2e..77a8f558 100644 --- a/install/motioneye-v5-install.sh +++ b/install/motioneye-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/mqtt-v5-install.sh b/install/mqtt-v5-install.sh index b75ccd39..7b2893bb 100644 --- a/install/mqtt-v5-install.sh +++ b/install/mqtt-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/n8n-v5-install.sh b/install/n8n-v5-install.sh index 677f21b5..e03de40c 100644 --- a/install/n8n-v5-install.sh +++ b/install/n8n-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/navidrome-v5-install.sh b/install/navidrome-v5-install.sh index 8ef3f859..c035e760 100644 --- a/install/navidrome-v5-install.sh +++ b/install/navidrome-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/nextcloudpi-v5-install.sh b/install/nextcloudpi-v5-install.sh index e6092393..e0cb1628 100644 --- a/install/nextcloudpi-v5-install.sh +++ b/install/nextcloudpi-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/nginxproxymanager-v5-install.sh b/install/nginxproxymanager-v5-install.sh index e97c311e..eacab824 100644 --- a/install/nginxproxymanager-v5-install.sh +++ b/install/nginxproxymanager-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/nocodb-v5-install.sh b/install/nocodb-v5-install.sh index 15b515bc..1700c038 100644 --- a/install/nocodb-v5-install.sh +++ b/install/nocodb-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/node-red-v5-install.sh b/install/node-red-v5-install.sh index de324a32..20359660 100644 --- a/install/node-red-v5-install.sh +++ b/install/node-red-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/omada-v5-install.sh b/install/omada-v5-install.sh index 30191935..9dabc392 100644 --- a/install/omada-v5-install.sh +++ b/install/omada-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/omv-v5-install.sh b/install/omv-v5-install.sh index 9a1801a6..19e6c069 100644 --- a/install/omv-v5-install.sh +++ b/install/omv-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi export DEBIAN_FRONTEND=noninteractive YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") @@ -21,7 +22,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/openhab-v5-install.sh b/install/openhab-v5-install.sh index 1649094c..4ef6fe28 100644 --- a/install/openhab-v5-install.sh +++ b/install/openhab-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/paperless-ngx-v5-install.sh b/install/paperless-ngx-v5-install.sh index 496ae80a..2d3864e0 100644 --- a/install/paperless-ngx-v5-install.sh +++ b/install/paperless-ngx-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/photoprism-v5-install.sh b/install/photoprism-v5-install.sh index d8831deb..ca60b3df 100644 --- a/install/photoprism-v5-install.sh +++ b/install/photoprism-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi AVX=$(grep -o -m1 'avx[^ ]*' /proc/cpuinfo) YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") @@ -21,7 +22,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/pihole-v5-install.sh b/install/pihole-v5-install.sh index 091351f5..e8776260 100644 --- a/install/pihole-v5-install.sh +++ b/install/pihole-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi export DEBIAN_FRONTEND=noninteractive YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") @@ -21,7 +22,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/plex-v5-install.sh b/install/plex-v5-install.sh index 64d33251..93bb66d3 100644 --- a/install/plex-v5-install.sh +++ b/install/plex-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/podman-homeassistant-v5-install.sh b/install/podman-homeassistant-v5-install.sh index 20d9c70c..e7831240 100644 --- a/install/podman-homeassistant-v5-install.sh +++ b/install/podman-homeassistant-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/podman-v5-install.sh b/install/podman-v5-install.sh index 9fdad038..f893c4d0 100644 --- a/install/podman-v5-install.sh +++ b/install/podman-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/postgresql-v5-install.sh b/install/postgresql-v5-install.sh index 48d20364..16a24da2 100644 --- a/install/postgresql-v5-install.sh +++ b/install/postgresql-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/prometheus-v5-install.sh b/install/prometheus-v5-install.sh index de31eb50..5eaad18a 100644 --- a/install/prometheus-v5-install.sh +++ b/install/prometheus-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/prowlarr-v5-install.sh b/install/prowlarr-v5-install.sh index f22ccc1a..ace1fe80 100644 --- a/install/prowlarr-v5-install.sh +++ b/install/prowlarr-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/radarr-v5-install.sh b/install/radarr-v5-install.sh index 4f262889..57434a87 100644 --- a/install/radarr-v5-install.sh +++ b/install/radarr-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/readarr-v5-install.sh b/install/readarr-v5-install.sh index a776b2cf..b621cb7a 100644 --- a/install/readarr-v5-install.sh +++ b/install/readarr-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/sabnzbd-v5-install.sh b/install/sabnzbd-v5-install.sh index fd8b2d51..964f2de7 100644 --- a/install/sabnzbd-v5-install.sh +++ b/install/sabnzbd-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/scrypted-v5-install.sh b/install/scrypted-v5-install.sh index 4118fab3..53c2e62d 100644 --- a/install/scrypted-v5-install.sh +++ b/install/scrypted-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/shinobi-v5-install.sh b/install/shinobi-v5-install.sh index 838718b8..b78a3eb2 100644 --- a/install/shinobi-v5-install.sh +++ b/install/shinobi-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/sonarr-v5-install.sh b/install/sonarr-v5-install.sh index fbbac3ac..d70ec352 100644 --- a/install/sonarr-v5-install.sh +++ b/install/sonarr-v5-install.sh @@ -1,7 +1,8 @@ #!/usr/bin/env bash export DEBIAN_FRONTEND=noninteractive +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -21,7 +22,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/syncthing-v5-install.sh b/install/syncthing-v5-install.sh index f8370423..3a78362e 100644 --- a/install/syncthing-v5-install.sh +++ b/install/syncthing-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/tdarr-v5-install.sh b/install/tdarr-v5-install.sh index 8594d8a0..0121ef51 100644 --- a/install/tdarr-v5-install.sh +++ b/install/tdarr-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/technitiumdns-v5-install.sh b/install/technitiumdns-v5-install.sh index add94e24..28de985b 100644 --- a/install/technitiumdns-v5-install.sh +++ b/install/technitiumdns-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/transmission-v5-install.sh b/install/transmission-v5-install.sh index d6ead82b..436f527a 100644 --- a/install/transmission-v5-install.sh +++ b/install/transmission-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/trilium-v5-install.sh b/install/trilium-v5-install.sh index 617ec96d..b4fe4f89 100644 --- a/install/trilium-v5-install.sh +++ b/install/trilium-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/ubuntu-v5-install.sh b/install/ubuntu-v5-install.sh index d5371ab6..abb5e42f 100644 --- a/install/ubuntu-v5-install.sh +++ b/install/ubuntu-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/umbrel-v5-install.sh b/install/umbrel-v5-install.sh index 841be405..448920c3 100644 --- a/install/umbrel-v5-install.sh +++ b/install/umbrel-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/unifi-v5-install.sh b/install/unifi-v5-install.sh index ec68eaad..80b4562d 100644 --- a/install/unifi-v5-install.sh +++ b/install/unifi-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; 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") @@ -21,7 +22,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/uptimekuma-v5-install.sh b/install/uptimekuma-v5-install.sh index 5d088390..29af2997 100644 --- a/install/uptimekuma-v5-install.sh +++ b/install/uptimekuma-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/vaultwarden-v5-install.sh b/install/vaultwarden-v5-install.sh index 9d107133..4ad15ac4 100644 --- a/install/vaultwarden-v5-install.sh +++ b/install/vaultwarden-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/whisparr-v5-install.sh b/install/whisparr-v5-install.sh index 7f005241..9cd11da7 100644 --- a/install/whisparr-v5-install.sh +++ b/install/whisparr-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/whoogle-v5-install.sh b/install/whoogle-v5-install.sh index 5fdd8338..659b2d36 100644 --- a/install/whoogle-v5-install.sh +++ b/install/whoogle-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/wikijs-v5-install.sh b/install/wikijs-v5-install.sh index b138e039..b90beae5 100644 --- a/install/wikijs-v5-install.sh +++ b/install/wikijs-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/wireguard-v5-install.sh b/install/wireguard-v5-install.sh index c92487b2..06d3cc3f 100644 --- a/install/wireguard-v5-install.sh +++ b/install/wireguard-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/yunohost-v5-install.sh b/install/yunohost-v5-install.sh index 1f79c4a3..02ec6fc8 100644 --- a/install/yunohost-v5-install.sh +++ b/install/yunohost-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/zigbee2mqtt-v5-install.sh b/install/zigbee2mqtt-v5-install.sh index a37264cc..8eae1c36 100644 --- a/install/zigbee2mqtt-v5-install.sh +++ b/install/zigbee2mqtt-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred." diff --git a/install/zwave-js-ui-v5-install.sh b/install/zwave-js-ui-v5-install.sh index b115a202..3ce383d8 100644 --- a/install/zwave-js-ui-v5-install.sh +++ b/install/zwave-js-ui-v5-install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +silent() { "$@" > /dev/null 2>&1; } if [ "$VERBOSE" == "yes" ]; then set -x; fi -if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi +if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi YW=$(echo "\033[33m") RD=$(echo "\033[01;31m") BL=$(echo "\033[36m") @@ -20,7 +21,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR -silent() { "$@" > /dev/null 2>&1; } + function error_exit() { trap - ERR local reason="Unknown failure occurred."