mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-30 17:22:33 +00:00
data/kata-collect-data: support kata containers snap
Use `kata-containers.runtime` that is the runtime binary, to collect the data if the kata-runtime binary is not installed fixes #1720 Signed-off-by: Julio Montes <julio.montes@intel.com>
This commit is contained in:
parent
f4da3f585a
commit
19288aab46
@ -7,7 +7,10 @@
|
|||||||
|
|
||||||
typeset -r script_name=${0##*/}
|
typeset -r script_name=${0##*/}
|
||||||
typeset -r runtime_name="@RUNTIME_NAME@"
|
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 issue_url="@PROJECT_BUG_URL@"
|
||||||
typeset -r script_version="@VERSION@ (commit @COMMIT@)"
|
typeset -r script_version="@VERSION@ (commit @COMMIT@)"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user