From 4867db078c9a7b606d42e0fe455e00561088bc71 Mon Sep 17 00:00:00 2001 From: FibreTTP <120446961+FibreTTP@users.noreply.github.com> Date: Wed, 27 Sep 2023 14:58:19 +1000 Subject: [PATCH] Remove explicit user and group - add su directive for default user (npm). --- docker/rootfs/etc/logrotate.d/nginx-proxy-manager | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docker/rootfs/etc/logrotate.d/nginx-proxy-manager b/docker/rootfs/etc/logrotate.d/nginx-proxy-manager index 0882d61e..275b0aa6 100644 --- a/docker/rootfs/etc/logrotate.d/nginx-proxy-manager +++ b/docker/rootfs/etc/logrotate.d/nginx-proxy-manager @@ -1,5 +1,6 @@ /data/logs/*_access.log /data/logs/*/access.log { - create 0644 npm npm + su npm npm + create 0644 weekly rotate 4 missingok @@ -12,7 +13,8 @@ } /data/logs/*_error.log /data/logs/*/error.log { - create 0644 npm npm + su npm npm + create 0644 weekly rotate 10 missingok