summaryrefslogtreecommitdiff
path: root/init-letsencrypt.sh
diff options
context:
space:
mode:
Diffstat (limited to 'init-letsencrypt.sh')
-rwxr-xr-xinit-letsencrypt.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/init-letsencrypt.sh b/init-letsencrypt.sh
index bb623e2..21df2f0 100755
--- a/init-letsencrypt.sh
+++ b/init-letsencrypt.sh
@@ -5,6 +5,11 @@ if ! [ -x "$(command -v docker-compose)" ]; then
exit 1
fi
+if [[ ! -f ./.env ]]; then
+ echo ".env file does not exist on your filesystem."
+ exit 1
+fi
+
URL_HOST=$(grep URL_HOST .env | cut -d '=' -f2)
echo $URL_HOST