From ade4bd711dd966d3eaf57a8d19a53f1a69e26edf Mon Sep 17 00:00:00 2001 From: Marco Ochse Date: Fri, 10 May 2024 15:19:05 +0200 Subject: [PATCH] Prepare for T-Pot Mobile --- install.sh | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 80de81a7..0c0260da 100755 --- a/install.sh +++ b/install.sh @@ -171,19 +171,26 @@ echo "### (H)ive - T-Pot Standard / HIVE installation." echo "### Includes also everything you need for a distributed setup with sensors." echo "### (S)ensor - T-Pot Sensor installation." echo "### Optimized for a distributed installation, without WebUI, Elasticsearch and Kibana." +echo "### (M)obile - T-Pot Mobile installation." +echo "### Includes everything to run T-Pot Mobile (available separately)." while true; do read -p "### Install Type? (h/s) " myTPOT_TYPE case "${myTPOT_TYPE}" in h|H) echo - echo "### Installing T-Pot Standard / HIVE installation." + echo "### Installing T-Pot Standard / HIVE." myTPOT_TYPE="HIVE" break ;; s|S) echo - echo "### Installing T-Pot Sensor installation." + echo "### Installing T-Pot Sensor." myTPOT_TYPE="SENSOR" break ;; + m|M) + echo + echo "### Installing T-Pot Mobile." + myTPOT_TYPE="MOBILE" + break ;; esac done @@ -274,6 +281,12 @@ if [ "${myTPOT_TYPE}" == "SENSOR" ]; ### 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 + # Pull docker images echo "### Now pulling images ..." sudo docker compose -f /home/${myUSER}/tpotce/docker-compose.yml pull