mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-10-13 11:59:14 +00:00
update
This commit is contained in:
parent
78acb5f5c0
commit
f609e20567
2 changed files with 8 additions and 2 deletions
2
.env
2
.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)
|
||||
# <empty>: This is empty by default.
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue