diff --git a/init-letsencrypt.sh b/init-letsencrypt.sh index feadedc..4ddbcec 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