Prepare for T-Pot Mobile

- improve install.sh
This commit is contained in:
Marco Ochse 2024-05-11 13:31:40 +02:00
parent 621a13df1a
commit 996e8a3451

View file

@ -180,22 +180,29 @@ while true; do
echo echo
echo "### Installing T-Pot Standard / HIVE." echo "### Installing T-Pot Standard / HIVE."
myTPOT_TYPE="HIVE" myTPOT_TYPE="HIVE"
cp ${HOME}/tpotce/compose/standard.yml ${HOME}/tpotce/docker-compose.yml
myINFO=""
break ;; break ;;
s|S) s|S)
echo echo
echo "### Installing T-Pot Sensor." echo "### Installing T-Pot Sensor."
myTPOT_TYPE="SENSOR" myTPOT_TYPE="SENSOR"
cp ${HOME}/tpotce/compose/sensor.yml ${HOME}/tpotce/docker-compose.yml
myINFO="### Make sure to deploy SSH keys to this SENSOR and disable SSH password authentication.
### On HIVE run the tpotce/deploy.sh script to join this SENSOR to the HIVE."
break ;; break ;;
m|M) m|M)
echo echo
echo "### Installing T-Pot Mobile." echo "### Installing T-Pot Mobile."
myTPOT_TYPE="MOBILE" myTPOT_TYPE="MOBILE"
cp ${HOME}/tpotce/compose/mobile.yml ${HOME}/tpotce/docker-compose.yml
myINFO=""
break ;; break ;;
esac esac
done done
if [ "${myTPOT_TYPE}" == "HIVE" ]; if [ "${myTPOT_TYPE}" != "SENSOR" ];
# Install T-Pot Type HIVE and ask for WebUI username and password # T-Pot Type is HIVE / MOBILE; asking for WebUI username and password
then then
# Preparing web user for T-Pot # Preparing web user for T-Pot
echo echo
@ -266,25 +273,6 @@ if [ "${myTPOT_TYPE}" == "HIVE" ];
echo echo
sed -i "s|^WEB_USER=.*|WEB_USER=${myWEB_USER_ENC_B64}|" ${myTPOT_CONF_FILE} sed -i "s|^WEB_USER=.*|WEB_USER=${myWEB_USER_ENC_B64}|" ${myTPOT_CONF_FILE}
# Install T-Pot Type HIVE and use standard.yml for installation
cp ${HOME}/tpotce/compose/standard.yml ${HOME}/tpotce/docker-compose.yml
myINFO=""
fi
if [ "${myTPOT_TYPE}" == "SENSOR" ];
# Install T-Pot Type SENSOR and use sensor.yml for installation
then
cp ${HOME}/tpotce/compose/sensor.yml ${HOME}/tpotce/docker-compose.yml
myINFO="### Make sure to deploy SSH keys to this sensor and disable SSH password authentication.
### On hive run the tpotce/deploy.sh script to join this sensor to the hive."
fi
if [ "${myTPOT_TYPE}" == "MOBILE" ];
# Install T-Pot Type MOBILE and use mobile.yml for installation
then
cp ${HOME}/tpotce/compose/mobile.yml ${HOME}/tpotce/docker-compose.yml
fi fi
# Pull docker images # Pull docker images