mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-28 21:25:55 +01:00
resolve the cve export volumn permission (#17157)
See the right uid and gid for the scandata_exports in the prepare Signed-off-by: Wang Yan <wangyan@vmware.com>
This commit is contained in:
parent
aa3cdcbc6c
commit
ef8b8f0be7
@ -15,9 +15,12 @@ def prepare_job_service(config_dict):
|
|||||||
|
|
||||||
log_level = config_dict['log_level'].upper()
|
log_level = config_dict['log_level'].upper()
|
||||||
|
|
||||||
# Job log is stored in data dir
|
# Job log and exported reports are stored in data dir
|
||||||
job_log_dir = os.path.join('/data', "job_logs")
|
job_log_dir = os.path.join('/data', "job_logs")
|
||||||
prepare_dir(job_log_dir, uid=DEFAULT_UID, gid=DEFAULT_GID)
|
prepare_dir(job_log_dir, uid=DEFAULT_UID, gid=DEFAULT_GID)
|
||||||
|
job_log_dir = os.path.join('/data', "scandata_exports")
|
||||||
|
prepare_dir(job_log_dir, uid=DEFAULT_UID, gid=DEFAULT_GID)
|
||||||
|
|
||||||
# Render Jobservice env
|
# Render Jobservice env
|
||||||
render_jinja(
|
render_jinja(
|
||||||
job_service_env_template_path,
|
job_service_env_template_path,
|
||||||
|
Loading…
Reference in New Issue
Block a user