Merge pull request #5941 from reasonerjt/chown-job-log

Run `chown` to job log directory
This commit is contained in:
Wenkai Yin 2018-09-22 20:25:12 +08:00 committed by GitHub
commit 7a4c0191f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,6 @@
#!/bin/sh #!/bin/sh
if [ -d /var/log/jobs ]; then
chown -R 10000:10000 /var/log/jobs/
fi
sudo -E -u \#10000 "/harbor/harbor_jobservice" "-c" "/etc/jobservice/config.yml" sudo -E -u \#10000 "/harbor/harbor_jobservice" "-c" "/etc/jobservice/config.yml"