<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>I didn't spot the bug report 839702 before opening this one:<br>
</p>
<p><a class="moz-txt-link-freetext" href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=839702">https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=839702</a></p>
<p>Looking closer to the security issue mentioned in 839702, a fix
came out recently and the configuration suggested previously
should be dropped.</p>
<p>A log-rotate file is present in the gitlab repo here:
<a class="moz-txt-link-freetext" href="https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/support/logrotate/gitlab">https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/support/logrotate/gitlab</a><br>
<br>
That being said, the current user use by gitlab in debian package
is gitlab. So I think "su git git" should be replace by "su gitlab
gitlab". <br>
</p>
<pre class="code highlight" lang="plaintext"><span id="LC1" class="line" lang="plaintext"># GitLab logrotate settings</span>
<span id="LC2" class="line" lang="plaintext"># based on: <a class="moz-txt-link-freetext" href="http://stackoverflow.com/a/4883967">http://stackoverflow.com/a/4883967</a></span>
<span id="LC3" class="line" lang="plaintext"></span>
<span id="LC4" class="line" lang="plaintext">/home/git/gitlab/log/*.log {</span>
<span id="LC5" class="line" lang="plaintext"> su git git</span>
<span id="LC6" class="line" lang="plaintext"> daily</span>
<span id="LC7" class="line" lang="plaintext"> missingok</span>
<span id="LC8" class="line" lang="plaintext"> rotate 90</span>
<span id="LC9" class="line" lang="plaintext"> compress</span>
<span id="LC10" class="line" lang="plaintext"> notifempty</span>
<span id="LC11" class="line" lang="plaintext"> copytruncate</span>
<span id="LC12" class="line" lang="plaintext">}</span>
<span id="LC13" class="line" lang="plaintext"></span>
<span id="LC14" class="line" lang="plaintext">/home/git/gitlab-shell/gitlab-shell.log {</span>
<span id="LC15" class="line" lang="plaintext"> su git git</span>
<span id="LC16" class="line" lang="plaintext"> daily</span>
<span id="LC17" class="line" lang="plaintext"> missingok</span>
<span id="LC18" class="line" lang="plaintext"> rotate 90</span>
<span id="LC19" class="line" lang="plaintext"> compress</span>
<span id="LC20" class="line" lang="plaintext"> notifempty</span>
<span id="LC21" class="line" lang="plaintext"> copytruncate</span>
<span id="LC22" class="line" lang="plaintext">}</span>
</pre>
<p>Sorry for the noise,<br>
</p>
<div class="moz-signature">-- <br>
<table>
<tbody>
<tr valign="top">
<td rowspan="2"><img
src="cid:part1.D21E1840.9AB07098@edf-sf.com" alt=""><span
style="font-family: sans-serif; font-size: small;"> </span></td>
</tr>
<tr valign="top">
<td><span style="color: #ff8100; font-family: Calibri;
font-size: small;"><strong><strong>Fabrice MEYER</strong><br>
Software and System Engineer</strong></span><span
style="color: #0062e1; font-family: Calibri; font-size:
x-small;"><br>
<br>
EDF Store & Forecast<br>
13 Avenue Albert Einstein<br>
69100 Villeurbanne<br>
France<br>
</span><br>
<span style="color: #0062e1; font-family: Calibri;
font-size: x-small;"><strong><a
class="moz-txt-link-abbreviated"
href="mailto:fabrice.meyer@edf-sf.com"
moz-do-not-send="true">fabrice.meyer@edf-sf.co</a></strong></span><br>
<span style="color: #0062e1; font-family: Calibri;
font-size: x-small;"><strong><a
class="moz-txt-link-abbreviated"
href="https://www.edf-sf.com" moz-do-not-send="true">www.edf-sf.com</a></strong></span></td>
</tr>
</tbody>
</table>
</div>
</body>
</html>