diff --git a/init-letsencrypt.sh b/init-letsencrypt.sh index 7b0bf75..4054d05 100755 --- a/init-letsencrypt.sh +++ b/init-letsencrypt.sh @@ -3,7 +3,7 @@ ## Scrip based on https://github.com/wmnnd/nginx-certbot ## https://pentacent.medium.com/nginx-and-lets-encrypt-with-docker-in-less-than-5-minutes-b4b8a60d3a71 -if ! [ -x "$(command -v docker-compose)" ] || ! [ -x "$(command -v docker compose)" ]; then +if ! [ -x "$(command -v docker-compose)" ] && ! [ -x "$(command -v docker compose)" ]; then echo 'Error: docker-compose is not installed.' >&2 exit 1 fi @@ -20,7 +20,7 @@ if [ -f .env ]; then fi if [[ -z "$LETSENCRYPT_EMAIL" ]]; then - echo "Settung up an email for letsencrypt certificates is strongly recommended." + echo "Setting up an email for letsencrypt certificates is strongly recommended (inside .env file)." exit 1 fi