diff --git a/make/photon/log/logrotate b/make/photon/log/logrotate index 9042df924..be1c97708 100755 --- a/make/photon/log/logrotate +++ b/make/photon/log/logrotate @@ -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 \ No newline at end of file +exit 0