Commit 6a20fd1f authored by Balasankar "Balu" C's avatar Balasankar "Balu" C

Make logrotate run as git user for source installations

Signed-off-by: default avatarBalasankar "Balu" C <balasankarc@autistici.org>
parent bf8f3cd8
---
title: Make logrotate run as git user for source installations
merge_request: 35519
author:
type: security
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
# based on: http://stackoverflow.com/a/4883967 # based on: http://stackoverflow.com/a/4883967
/home/git/gitlab/log/*.log { /home/git/gitlab/log/*.log {
su git git
daily daily
missingok missingok
rotate 90 rotate 90
...@@ -11,6 +12,7 @@ ...@@ -11,6 +12,7 @@
} }
/home/git/gitlab-shell/gitlab-shell.log { /home/git/gitlab-shell/gitlab-shell.log {
su git git
daily daily
missingok missingok
rotate 90 rotate 90
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment