fix: resolve logrotate permission issues in maintenance container

This commit is contained in:
Scott Idem
2026-04-03 17:10:22 -04:00
parent 3c6b67b149
commit d1ed06a4c4
3 changed files with 4 additions and 4 deletions

View File

@@ -228,7 +228,7 @@ services:
- ./logs:/logs
- ./conf/crontab:/etc/crontabs/root
- ./conf/logrotate.conf:/etc/logrotate.conf
command: sh -c "apk add --no-cache docker-cli bash logrotate && crond -f -l 2"
command: sh -c "apk add --no-cache docker-cli bash logrotate && adduser -u 1000 -D aether && cp /etc/logrotate.conf /etc/logrotate.internal.conf && chown root:root /etc/logrotate.internal.conf && crond -f -l 2"
depends_on:
- mariadb
logging: