From 383b5affb52cd20a87cdfd6235df7e51d4ad31b1 Mon Sep 17 00:00:00 2001 From: Patrik Kernstock Date: Mon, 22 Sep 2025 19:49:31 +0200 Subject: [PATCH 1/2] More clearer message to install required tool --- _modules/scripts/core.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/_modules/scripts/core.sh b/_modules/scripts/core.sh index f71368d24..e86c2afc9 100644 --- a/_modules/scripts/core.sh +++ b/_modules/scripts/core.sh @@ -17,7 +17,12 @@ caller="${BASH_SOURCE[1]##*/}" get_installed_tools(){ for bin in openssl curl docker git awk sha1sum grep cut jq; do - if [[ -z $(command -v ${bin}) ]]; then echo "Cannot find ${bin}, exiting..."; exit 1; fi + if [[ -z $(command -v ${bin}) ]]; then + echo "Error: Cannot find command '${bin}'. Cannot proceed." + echo "Solution: Please install accordingly and re-run the script." + echo "Exiting..." + exit 1 + fi done if grep --help 2>&1 | head -n 1 | grep -q -i "busybox"; then echo -e "${LIGHT_RED}BusyBox grep detected, please install gnu grep, \"apk add --no-cache --upgrade grep\"${NC}"; exit 1; fi @@ -221,4 +226,4 @@ detect_major_update() { fi fi fi -} \ No newline at end of file +} From c915bf2ee20aa54482b2701f0e8220ea02f14ebe Mon Sep 17 00:00:00 2001 From: Patrik Kernstock Date: Wed, 24 Sep 2025 19:06:47 +0200 Subject: [PATCH 2/2] Add docs link to get_installed_tools() message --- _modules/scripts/core.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/_modules/scripts/core.sh b/_modules/scripts/core.sh index e86c2afc9..f776c6212 100644 --- a/_modules/scripts/core.sh +++ b/_modules/scripts/core.sh @@ -19,7 +19,8 @@ get_installed_tools(){ for bin in openssl curl docker git awk sha1sum grep cut jq; do if [[ -z $(command -v ${bin}) ]]; then echo "Error: Cannot find command '${bin}'. Cannot proceed." - echo "Solution: Please install accordingly and re-run the script." + echo "Solution: Please review system requirements and install requirements. Then, re-run the script." + echo "See System Requirements: https://docs.mailcow.email/getstarted/install/" echo "Exiting..." exit 1 fi