소스 검색

Remove explicit user and group - add su directive for default user (npm).

FibreTTP 2 년 전
부모
커밋
4867db078c
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 2
      docker/rootfs/etc/logrotate.d/nginx-proxy-manager

+ 4 - 2
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