mirror of
https://github.com/goharbor/harbor.git
synced 2025-02-22 14:52:17 +01:00
Merge pull request #15527 from sevendials/logrotate_fails_when_cwd_is_not_readable
Logrotate fails when cwd is not accessible
This commit is contained in:
commit
3ce072016f
@ -2,5 +2,6 @@
|
||||
|
||||
# run the logrotate with user 10000, the state file "/var/lib/logrotate/logrotate.status"
|
||||
# is specified to avoid the permission error
|
||||
cd /
|
||||
sudo -u \#10000 -E /usr/sbin/logrotate -s /var/lib/logrotate/logrotate.status /etc/logrotate.conf
|
||||
exit 0
|
||||
exit 0
|
||||
|
Loading…
Reference in New Issue
Block a user