From 1ef34465c2c298ecb05ea4e26580a5e9b23bc279 Mon Sep 17 00:00:00 2001 From: Vivek Santayana Date: Mon, 20 Jun 2022 12:53:40 +0100 Subject: [PATCH] Debug install script --- install-script.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/install-script.sh b/install-script.sh index 5d89054..e7d9f25 100644 --- a/install-script.sh +++ b/install-script.sh @@ -2,7 +2,12 @@ # Source https://pentacent.medium.com/nginx-and-lets-encrypt-with-docker-in-less-than-5-minutes-b4b8a60d3a71 -if ! [ -x "$(command -v docker compose)" ]; then +if ! [ -x "$(command -v docker)" ]; then + echo 'Error: docker is not installed.' >&2 + exit 1 +fi + +if ! [ -x "$(command -v compose)" ]; then echo 'Error: docker compose is not installed.' >&2 exit 1 fi