This commit is contained in:
2026-03-11 13:44:37 +01:00
parent b66bda0f66
commit 62e19b2fd4

View File

@@ -5,6 +5,12 @@
#docker stack deploy -c compose.yml ${PWD##*/} #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 if [ -f ".env" ]; then
env $(grep -v '^#' ${PWD}/.env | sed 's/#.*//' | xargs) docker stack deploy -c compose.yml ${PWD##*/} env $(grep -v '^#' ${PWD}/.env | sed 's/#.*//' | xargs) docker stack deploy -c compose.yml ${PWD##*/}
else else