mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-23 02:35:17 +01:00
696264bee9
This commit fixes issue #6895 by running logrotate with user 10000 Signed-off-by: Wenkai Yin <yinw@vmware.com>
6 lines
250 B
Bash
Executable File
6 lines
250 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# run the logrotate with user 10000, the state file "/var/lib/logrotate/logrotate.status"
|
|
# is specified to avoid the permission error
|
|
sudo -u \#10000 -E /usr/sbin/logrotate -s /var/lib/logrotate/logrotate.status /etc/logrotate.conf
|
|
exit 0 |