fix: Link .env file correctly (I hope)
This commit is contained in:
@@ -127,6 +127,13 @@ in
|
|||||||
/var/lib/usda-vision/docker-compose.yml
|
/var/lib/usda-vision/docker-compose.yml
|
||||||
''}
|
''}
|
||||||
|
|
||||||
|
# Fix env_file paths to point to /var/lib/usda-vision/.env
|
||||||
|
echo "Fixing env_file paths in docker-compose.yml..."
|
||||||
|
${pkgs.gnused}/bin/sed -i \
|
||||||
|
-e 's|env_file:.*management-dashboard-web-app/\.env|env_file: /var/lib/usda-vision/.env|g' \
|
||||||
|
-e 's|\./management-dashboard-web-app/\.env|/var/lib/usda-vision/.env|g' \
|
||||||
|
/var/lib/usda-vision/docker-compose.yml
|
||||||
|
|
||||||
${lib.optionalString (cfg.envFile != null) ''
|
${lib.optionalString (cfg.envFile != null) ''
|
||||||
echo "Copying environment file from managed secret..."
|
echo "Copying environment file from managed secret..."
|
||||||
cp ${cfg.envFile} /var/lib/usda-vision/.env
|
cp ${cfg.envFile} /var/lib/usda-vision/.env
|
||||||
|
|||||||
Reference in New Issue
Block a user