Fix the path at which `dc` looks for `.env`.

This commit is contained in:
Ivaylo Novakov 2022-08-16 10:12:11 +02:00
parent e35a0c8354
commit ab4468ebf5
No known key found for this signature in database
GPG Key ID: 06B9354AB08BE9C6
1 changed files with 1 additions and 1 deletions

2
dc
View File

@ -11,7 +11,7 @@
cwd="$(dirname -- "$0";)";
# get portal modules configuration from .env file (if defined more than once, the last one is used)
PORTAL_MODULES=$(grep -e "^PORTAL_MODULES=" ${cwd}.env | tail -1 | sed "s/PORTAL_MODULES=//")
PORTAL_MODULES=$(grep -e "^PORTAL_MODULES=" ${cwd}/.env | tail -1 | sed "s/PORTAL_MODULES=//")
# include base docker compose file
COMPOSE_FILES="-f ${cwd}/docker-compose.yml"