reads TPOT_TYPE variable from .env, and copies the appropriate file from compose to docker-compose.yml

This commit is contained in:
Daniel Ortiz 2025-07-04 20:35:13 -04:00
parent b3c0438b1c
commit b348734403

View file

@ -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