diff --git a/logrotate.cfg b/logrotate.cfg index d872a3d..7d2ca46 100644 --- a/logrotate.cfg +++ b/logrotate.cfg @@ -7,6 +7,7 @@ copytruncate dateext postrotate - echo "$(date) Logrotate (log.txt) hat stattgefunden! ERR: $?" >>/root/Logs/log.log + echo "$(date) Logrotate ($1) hat stattgefunden! ERR: $?" >>$1 + echo "$(date) Logrotate ($1) hat stattgefunden! " >>/home/alf/Gitea/logger/Logs/logrotate.log endscript }