From f609e20567931e2c343be7cbf2d131cde0aa4069 Mon Sep 17 00:00:00 2001 From: Daniel Ortiz Date: Sat, 12 Jul 2025 20:58:46 -0400 Subject: [PATCH] update --- .env | 2 +- update.sh | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.env b/.env index fd39580d..f6cecc99 100644 --- a/.env +++ b/.env @@ -60,7 +60,7 @@ TPOT_PERSISTENCE_CYCLES=30 # 4. On SENSOR: Provide username / password from (3) for TPOT_HIVE_USER as base64 encoded string: # "echo -n 'username:password' | base64 -w0" # MOBILE: This will set the correct type for T-Pot Mobile (https://github.com/telekom-security/tpotmobile) -TPOT_TYPE=HIVE +TPOT_TYPE=SENSOR # T-Pot Hive User (only relevant for SENSOR deployment) # : This is empty by default. diff --git a/update.sh b/update.sh index 64d0011c..91a3186f 100755 --- a/update.sh +++ b/update.sh @@ -53,7 +53,7 @@ function fuCHECKINET () { function fuSELFUPDATE () { echo echo "### Now checking for newer files in repository ..." - echo "### fuSELFUPDATE T-Pot (2)... TPOT_TYPE is set to: $myTPOT_TYPE" + echo "### fuSELFUPDATE T-Pot... TPOT_TYPE is set to: $myTPOT_TYPE" git fetch --all myREMOTESTAT=$(git status | grep -c "up-to-date") if [ "$myREMOTESTAT" != "0" ]; @@ -84,6 +84,12 @@ function fuSELFUPDATE () { else grep -q "^TPOT_TYPE=" .env && sed -i "s/^TPOT_TYPE=.*/TPOT_TYPE=${myTPOT_TYPE}/" .env echo "### T-Pot type set to: $myTPOT_TYPE in .env" + if [ "$myTPOT_TYPE" == "SENSOR" ]; then + echo "### Copying compose/sensor.yml to docker-compose.yml" + cp compose/sensor.yml docker-compose.yml + else + echo "### No docker-compose-sensor.yml found, using default docker-compose.yml" + fi fi exit 1