Skip to content

Commit

Permalink
ci: change privilege for runtime-rs
Browse files Browse the repository at this point in the history
In order to not abusing use of sudo, we add chown command for setting up
the correct privilege for runtime-rs.

Fixes kata-containers#5007

Signed-off-by: Chao Wu <[email protected]>
  • Loading branch information
studychao committed Aug 10, 2022
1 parent b3d239a commit 58c7ec0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .ci/install_runtime.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ build_install_shim_v2(){
if [ "$KATA_HYPERVISOR" == "dragonball" ]; then
bash "${cidir}/install_rust.sh" && source "$HOME/.cargo/env"
pushd "$runtime_rs_src_path"
sudo -E PATH=$PATH make
sudo chown -R "${USER}:" "${katacontainers_repo_dir}"
make
sudo -E PATH=$PATH make install
popd
fi
Expand Down

0 comments on commit 58c7ec0

Please sign in to comment.