Skip to content

Commit

Permalink
data/kata-collect-data: support kata containers snap
Browse files Browse the repository at this point in the history
Use `kata-containers.runtime` that is the runtime binary, to
collect the data if the kata-runtime binary is not installed

fixes kata-containers#1720

Signed-off-by: Julio Montes <[email protected]>
  • Loading branch information
Julio Montes committed May 21, 2019
1 parent f4da3f5 commit 19288aa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion data/kata-collect-data.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@

typeset -r script_name=${0##*/}
typeset -r runtime_name="@RUNTIME_NAME@"
typeset -r runtime=$(command -v "$runtime_name" 2>/dev/null)
typeset -r runtime_path=$(command -v "$runtime_name" 2>/dev/null)
typeset -r runtime_snap_name="kata-containers.runtime"
typeset -r runtime_snap_path=$(command -v "$runtime_snap_name" 2>/dev/null)
typeset -r runtime=${runtime_path:-"$runtime_snap_path"}
typeset -r issue_url="@PROJECT_BUG_URL@"
typeset -r script_version="@VERSION@ (commit @COMMIT@)"

Expand Down

0 comments on commit 19288aa

Please sign in to comment.