Commit 0af4e3a4 authored by yixingj's avatar yixingj
Browse files

Fix clair permission issue

Clair will call bzr, without -H in sudo it will usr root user's
Home envrionment.
parent a8ba486c
Showing with 1 addition and 1 deletion
+1 -1
#!/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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment