[packages/gitlab-ce] logrotate: add su directive
glen
glen at pld-linux.org
Fri Oct 14 12:11:15 CEST 2016
commit 44d10c59b69c7324eb63638c8dfcad649fac70ba
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Thu Oct 13 17:14:50 2016 +0300
logrotate: add su directive
error: skipping "/var/log/gitlab/production.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for rotation.
gitlab.logrotate | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/gitlab.logrotate b/gitlab.logrotate
index 996cd05..2ea5edb 100644
--- a/gitlab.logrotate
+++ b/gitlab.logrotate
@@ -9,6 +9,7 @@
minsize 1M
sharedscripts
+ su root git
olddir /var/log/archive/gitlab
postrotate
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/gitlab-ce.git/commitdiff/d6a4e031ba3b9e2bde441c0866f74995982cb051
More information about the pld-cvs-commit
mailing list