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)
|
myTPOT_TYPE=$(grep -E '^TPOT_TYPE=' .env | cut -d '=' -f2)
|
||||||
# Verify if TPOT_TYPE is set
|
# Verify if TPOT_TYPE is set
|
||||||
if [ -z "$myTPOT_TYPE" ]; then
|
if [ -z "$myTPOT_TYPE" ]; then
|
||||||
echo "### TPOT_TYPE not set in .env file. Defaulting to HIVE."
|
|
||||||
myTPOT_TYPE="HIVE"
|
myTPOT_TYPE="HIVE"
|
||||||
fi
|
fi
|
||||||
echo "### T-Pot type is set to: $myTPOT_TYPE"
|
|
||||||
else
|
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"
|
myTPOT_TYPE="HIVE"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
@ -242,12 +237,9 @@ fi
|
||||||
# if exists second argument, use it as T-Pot type, only if SENSOR or HIVE
|
# if exists second argument, use it as T-Pot type, only if SENSOR or HIVE
|
||||||
if [ -n "$2" ]; then
|
if [ -n "$2" ]; then
|
||||||
if [[ "$2" == "SENSOR" || "$2" == "HIVE" ]]; then
|
if [[ "$2" == "SENSOR" || "$2" == "HIVE" ]]; then
|
||||||
echo "### Setting T-Pot type to: $2"
|
|
||||||
# Set the T-Pot type
|
|
||||||
myTPOT_TYPE="$2"
|
myTPOT_TYPE="$2"
|
||||||
else
|
else
|
||||||
echo "Invalid T-Pot type specified. Please use 'SENSOR' or 'HIVE'."
|
myTPOT_TYPE="HIVE"
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
myTPOT_TYPE="HIVE"
|
myTPOT_TYPE="HIVE"
|
||||||
|
|
Loading…
Reference in a new issue