From b3487344039aec00a3adfbeb757c21394612b3cb Mon Sep 17 00:00:00 2001 From: Daniel Ortiz Date: Fri, 4 Jul 2025 20:35:13 -0400 Subject: [PATCH] reads TPOT_TYPE variable from .env, and copies the appropriate file from compose to docker-compose.yml --- update.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/update.sh b/update.sh index b7e2b1ff..a7155252 100755 --- a/update.sh +++ b/update.sh @@ -72,11 +72,13 @@ function fuSELFUPDATE () { else echo "###### $myBLUE""Pulling updates from repository.""$myWHITE" git reset --hard - git pull --force + git pull --force fi echo # determines if variable TPOT_TYPE is set if [ -z "$TPOT_TYPE" ]; then + cp compose/standard.yml docker-compose.yml + else # There are 3 cases for TPOT_TYPE: HIVE, SENSOR and MOBILE if "$TPOT_TYPE" == "HIVE" ]; then cp compose/standard.yml docker-compose.yml