mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 01:27:27 -04:00
add TPOT_PERSISTENCE_CYCLES setting
- makes logrotate cycles configurable, instead of static 30 days - adjust .env / env.example for setting cycles - adjust tpotinit dockerfile to include envsubst - add logrotate.template - add checks / validations
This commit is contained in:
@ -13,6 +13,7 @@ RUN apk --no-cache -U upgrade && \
|
||||
conntrack-tools \
|
||||
cracklib \
|
||||
curl \
|
||||
envsubst \
|
||||
ethtool \
|
||||
figlet \
|
||||
git \
|
||||
@ -32,7 +33,7 @@ RUN apk --no-cache -U upgrade && \
|
||||
# Setup user, logrotate permissions
|
||||
addgroup -g 2000 tpot && \
|
||||
adduser -S -s /bin/ash -u 2000 -D -g 2000 tpot && \
|
||||
chmod 0600 /opt/tpot/etc/logrotate/logrotate.conf && \
|
||||
chmod 0600 /opt/tpot/etc/logrotate/logrotate.* && \
|
||||
#
|
||||
# Clean up
|
||||
apk del --purge git && \
|
||||
|
Reference in New Issue
Block a user