mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-08-23 03:16:55 +00:00
reads TPOT_TYPE variable from .env, and copies the appropriate file from compose to docker-compose.yml
This commit is contained in:
parent
b3c0438b1c
commit
b348734403
1 changed files with 3 additions and 1 deletions
|
@ -72,11 +72,13 @@ function fuSELFUPDATE () {
|
||||||
else
|
else
|
||||||
echo "###### $myBLUE""Pulling updates from repository.""$myWHITE"
|
echo "###### $myBLUE""Pulling updates from repository.""$myWHITE"
|
||||||
git reset --hard
|
git reset --hard
|
||||||
git pull --force
|
git pull --force
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
|
Loading…
Reference in a new issue