Commit 00a482511c20dc427b10629e8a1c993472dae2b6

Authored by Jacob Vosmaer
1 parent 474ae8a6

Clean up *.log.1 files during 6.6-to-6.7 upgrade

Showing 1 changed file with 4 additions and 0 deletions   Show diff stats
doc/update/6.6-to-6.7.md
... ... @@ -64,6 +64,10 @@ sudo cp lib/support/init.d/gitlab /etc/init.d/gitlab
64 64 # Update the logrotate configuration (keep logs for 90 days instead of 52 weeks)
65 65 sudo cp lib/support/logrotate/gitlab /etc/logrotate.d/gitlab
66 66  
  67 +# Compress existing .log.1 files because we turned off delaycompress in logrotate
  68 +sudo -u git -H gzip /home/git/gitlab/log/*.log.1
  69 +sudo -u git -H gzip /home/git/gitlab-shell/gitlab-shell.log.1
  70 +
67 71 # Close access to gitlab-satellites for others
68 72 sudo chmod u+rwx,g+rx,o-rwx /home/git/gitlab-satellites
69 73 ```
... ...