From d258862b000824a89b8d42b069a2a0830232179e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C3=ABl=20Minelli?= <git@minelli.swiss>
Date: Mon, 21 Oct 2024 20:09:06 +0200
Subject: [PATCH] bug fix

---
 API   | 2 +-
 infra | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/API b/API
index 8531fc9..6d615e8 160000
--- a/API
+++ b/API
@@ -1 +1 @@
-Subproject commit 8531fc9f5fc4cf4d9ad7e3c5bc2639445c4abbd8
+Subproject commit 6d615e8afd5febc505cf38d22bac75915d6e4342
diff --git a/infra b/infra
index 56ae464..3103ddb 100755
--- a/infra
+++ b/infra
@@ -32,7 +32,7 @@ CPU_LIMIT=${CPU_LIMIT} ${DOCKER_COMPOSE_COMMAND} kill
 if [ "$1" = "--run" ]; then
     # Check if .env file exists
     if [ -f $ENV_FILE ]; then
-        cp -f $ENV_FILE API/$ENV_FILE
+        cat $ENV_FILE API/ExpressAPI/global.env > API/.env
         CPU_LIMIT=${CPU_LIMIT} ${DOCKER_COMPOSE_COMMAND} --env-file ${ENV_FILE} up --build -d
     else
         echo "Need a file named ${ENV_FILE} providing environment variables."
-- 
GitLab