mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-23 02:35:17 +01:00
31096a35af
This commit revoke part of the change introduced in commit #1fc4142, by calling chown to job log directory within the container when the job service bootstraps. The reason is we are seeing permission issue in helm-chart deployment, and we want to reduce effort to handle the permission on different deployment approaches. There are some code in `prepare` script to change the ownership of the JOB_LOG directory, it will be left for now to avoid regression in VIC integration. Signed-off-by: Daniel Jiang <jiangd@vmware.com>
7 lines
165 B
Bash
7 lines
165 B
Bash
#!/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"
|
|
|