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

@ -77,6 +77,8 @@ function fuSELFUPDATE () {
echo echo
# determines if variable TPOT_TYPE is set # determines if variable TPOT_TYPE is set
if [ -z "$TPOT_TYPE" ]; then if [ -z "$TPOT_TYPE" ]; then
cp compose/standard.yml docker-compose.yml
else
# There are 3 cases for TPOT_TYPE: HIVE, SENSOR and MOBILE # There are 3 cases for TPOT_TYPE: HIVE, SENSOR and MOBILE
if "$TPOT_TYPE" == "HIVE" ]; then if "$TPOT_TYPE" == "HIVE" ]; then
cp compose/standard.yml docker-compose.yml cp compose/standard.yml docker-compose.yml