mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-04-20 06:02:24 +00:00
Prepare for T-Pot Mobile
- improve install.sh
This commit is contained in:
parent
621a13df1a
commit
996e8a3451
1 changed files with 9 additions and 21 deletions
30
install.sh
30
install.sh
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue