mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-23 02:35:17 +01:00
Fix clair permission issue
Clair will call bzr, without -H in sudo it will usr root user's Home envrionment.
This commit is contained in:
parent
a8ba486c3a
commit
0af4e3a41d
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
chown -R 10000:10000 /config
|
||||
sudo -E -u \#10000 sh -c "/dumb-init -- /clair2.0.1/clair -config /config/config.yaml"
|
||||
sudo -E -H -u \#10000 sh -c "/dumb-init -- /clair2.0.1/clair -config /config/config.yaml"
|
||||
set +e
|
||||
|
Loading…
Reference in New Issue
Block a user