init-letsencrypt.sh - Docker Compose not found fixed

This commit is contained in:
Michelle Winkler
2024-12-03 14:40:59 +01:00
parent a3d589764d
commit 9bf6f17426

View File

@@ -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)" ]; then
if ! [ -x "$(command -v docker-compose)" ] || ! [ -x "$(command -v docker compose)" ]; then
echo 'Error: docker-compose is not installed.' >&2
exit 1
fi