From 62e19b2fd4c9308ed17b5ca98ec11612c342a6c3 Mon Sep 17 00:00:00 2001 From: Kim Brian Ramberg Date: Wed, 11 Mar 2026 13:44:37 +0100 Subject: [PATCH] . --- start.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/start.sh b/start.sh index 231828a..ff392bd 100755 --- a/start.sh +++ b/start.sh @@ -5,6 +5,12 @@ #docker stack deploy -c compose.yml ${PWD##*/} + +# Check if .env file exists in the current directory +if [ ! -f ".env" ]; then + touch .env +fi + if [ -f ".env" ]; then env $(grep -v '^#' ${PWD}/.env | sed 's/#.*//' | xargs) docker stack deploy -c compose.yml ${PWD##*/} else