mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-30 14:13:43 +01:00
0af4e3a41d
Clair will call bzr, without -H in sudo it will usr root user's Home envrionment.
6 lines
145 B
Bash
6 lines
145 B
Bash
#!/bin/bash
|
|
set -e
|
|
chown -R 10000:10000 /config
|
|
sudo -E -H -u \#10000 sh -c "/dumb-init -- /clair2.0.1/clair -config /config/config.yaml"
|
|
set +e
|