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
a7af16f69a
commit
82147ba4bd
1 changed files with 1 additions and 9 deletions
10
update.sh
10
update.sh
|
@ -210,14 +210,9 @@ function fuREADTPOT_TYPE () {
|
|||
myTPOT_TYPE=$(grep -E '^TPOT_TYPE=' .env | cut -d '=' -f2)
|
||||
# Verify if TPOT_TYPE is set
|
||||
if [ -z "$myTPOT_TYPE" ]; then
|
||||
echo "### TPOT_TYPE not set in .env file. Defaulting to HIVE."
|
||||
myTPOT_TYPE="HIVE"
|
||||
fi
|
||||
echo "### T-Pot type is set to: $myTPOT_TYPE"
|
||||
else
|
||||
echo "### No .env file found. Unable to determine T-Pot type."
|
||||
echo "### Please ensure you are running this script from the tpotce directory."
|
||||
echo "### Defaulting to HIVE."
|
||||
myTPOT_TYPE="HIVE"
|
||||
fi
|
||||
}
|
||||
|
@ -242,12 +237,9 @@ fi
|
|||
# if exists second argument, use it as T-Pot type, only if SENSOR or HIVE
|
||||
if [ -n "$2" ]; then
|
||||
if [[ "$2" == "SENSOR" || "$2" == "HIVE" ]]; then
|
||||
echo "### Setting T-Pot type to: $2"
|
||||
# Set the T-Pot type
|
||||
myTPOT_TYPE="$2"
|
||||
else
|
||||
echo "Invalid T-Pot type specified. Please use 'SENSOR' or 'HIVE'."
|
||||
exit 1
|
||||
myTPOT_TYPE="HIVE"
|
||||
fi
|
||||
else
|
||||
myTPOT_TYPE="HIVE"
|
||||
|
|
Loading…
Reference in a new issue