update update.sh, discriminate whether it is SENSOR or HIVE

This commit is contained in:
Daniel Ortiz 2025-07-12 20:33:09 -04:00
parent cb8933cddb
commit d94207e56e

View file

@ -81,7 +81,7 @@ function fuSELFUPDATE () {
git pull --force git pull --force
fi fi
if [! -z "$myTPOT_TYPE" ]; then if [! -z "$myTPOT_TYPE" ]; then
echo "### Setting T-Pot type to: $myTPOT_TYPE in .env" echo "### Setting T-Pot type to: $myTPOT_TYPE"
grep -q "^TPOT_TYPE=" .env && sed -i "s/^TPOT_TYPE=.*/TPOT_TYPE=${myTPOT_TYPE}/" .env grep -q "^TPOT_TYPE=" .env && sed -i "s/^TPOT_TYPE=.*/TPOT_TYPE=${myTPOT_TYPE}/" .env
fi fi
exit 1 exit 1