mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-05-03 13:48:54 +00:00
fix logrotate config, fix version
This commit is contained in:
parent
cf91caaf8c
commit
406a7314ee
2 changed files with 4 additions and 5 deletions
docker/tpotinit/dist
4
docker/tpotinit/dist/bin/clean.sh
vendored
4
docker/tpotinit/dist/bin/clean.sh
vendored
|
@ -20,8 +20,8 @@ echo $(ls $myFOLDER | wc -l)
|
||||||
|
|
||||||
# Let's create a function to rotate and compress logs
|
# Let's create a function to rotate and compress logs
|
||||||
fuLOGROTATE () {
|
fuLOGROTATE () {
|
||||||
local mySTATUS="/data/tpot/etc/logrotate/status"
|
local mySTATUS="/opt/tpot/etc/logrotate/status"
|
||||||
local myCONF="/data/tpot/etc/logrotate/logrotate.conf"
|
local myCONF="/opt/tpot/etc/logrotate/logrotate.conf"
|
||||||
local myADBHONEYTGZ="/data/adbhoney/downloads.tgz"
|
local myADBHONEYTGZ="/data/adbhoney/downloads.tgz"
|
||||||
local myADBHONEYDL="/data/adbhoney/downloads/"
|
local myADBHONEYDL="/data/adbhoney/downloads/"
|
||||||
local myCOWRIETTYLOGS="/data/cowrie/log/tty/"
|
local myCOWRIETTYLOGS="/data/cowrie/log/tty/"
|
||||||
|
|
5
docker/tpotinit/dist/entrypoint.sh
vendored
5
docker/tpotinit/dist/entrypoint.sh
vendored
|
@ -1,6 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
VERSION="T-Pot $(cat /opt/tpot/version)"
|
|
||||||
COMPOSE="/tmp/tpot/docker-compose.yml"
|
COMPOSE="/tmp/tpot/docker-compose.yml"
|
||||||
|
|
||||||
# Check for compatible OSType
|
# Check for compatible OSType
|
||||||
|
@ -23,7 +22,7 @@ fi
|
||||||
if [ -f "/data/uuid" ];
|
if [ -f "/data/uuid" ];
|
||||||
then
|
then
|
||||||
figlet "Initializing ..."
|
figlet "Initializing ..."
|
||||||
figlet "${VERSION}"
|
figlet "T-Pot: ${TPOT_VERSION}"
|
||||||
echo
|
echo
|
||||||
echo "# Data folder is present, just cleaning up, please be patient ..."
|
echo "# Data folder is present, just cleaning up, please be patient ..."
|
||||||
echo
|
echo
|
||||||
|
@ -31,7 +30,7 @@ if [ -f "/data/uuid" ];
|
||||||
echo
|
echo
|
||||||
else
|
else
|
||||||
figlet "Setting up ..."
|
figlet "Setting up ..."
|
||||||
figlet "${VERSION}"
|
figlet "T-Pot: ${TPOT_VERSION}"
|
||||||
echo
|
echo
|
||||||
echo "# Checking for default user."
|
echo "# Checking for default user."
|
||||||
if [ "${WEB_USER}" == "change:me" ];
|
if [ "${WEB_USER}" == "change:me" ];
|
||||||
|
|
Loading…
Reference in a new issue