Handle password securely, needs htpasswd to create user:password:

- Update tpotinit and entrypoint.sh to reflect this
- Update install.sh to reflect this
- Update .env / env.example to reflect this

Reorder recommended packages in T-Pot Playbook
Add packages to T-Pot Playbook to ensure manual deployment via Ansible will offer the same environment as manual local installation via install.sh and local Ansible deployment.
This commit is contained in:
Marco Ochse
2023-07-05 23:03:41 +02:00
parent b3f1b71054
commit 12af5c9d46
5 changed files with 40 additions and 34 deletions

View File

@ -34,9 +34,9 @@ if [ -f "/data/uuid" ];
figlet "${VERSION}"
echo
echo "# Checking for default user."
if [ "${WEB_USER}" == "changeme" ] || [ "${WEB_PW}" == "changeme" ];
if [ "${WEB_USER}" == "change:me" ];
then
echo "# Please change WEB_USER and WEB_PW in the hidden \".env\" file."
echo "# Please change WEB_USER in the hidden \".env\" file."
echo "# Aborting."
echo
exit 1
@ -66,7 +66,7 @@ if [ -f "/data/uuid" ];
echo
echo "# Creating web user from tpot.env, make sure to erase the password from the .env ..."
echo
htpasswd -b -c /data/nginx/conf/nginxpasswd "${WEB_USER}" "${WEB_PW}"
echo "${WEB_USER}" > /data/nginx/conf/nginxpasswd
echo
echo "# Extracting objects, final touches and permissions ..."
echo