Changed init-letsencrypt.sh

This commit is contained in:
Michelle Winkler
2024-12-03 14:50:39 +01:00
parent 5f3e25cc99
commit e53ceca5ba

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)" ] || ! [ -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