mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-28 19:54:35 +00:00
kata-deploy: validate conf file can be created
As containerd doesn't exist at cleanup Fixes: #3429 Signed-off-by: Snir Sheriber <ssheribe@redhat.com>
This commit is contained in:
parent
a561159f7b
commit
ac7acbf87b
@ -268,7 +268,8 @@ function main() {
|
||||
containerd_conf_file_backup="${containerd_conf_file}.bak"
|
||||
else
|
||||
# runtime == containerd
|
||||
if [ ! -f "$containerd_conf_file" ]; then
|
||||
if [ ! -f "$containerd_conf_file" ] && [ -d $(dirname "$containerd_conf_file") ] && \
|
||||
[ -x $(command -v containerd) ]; then
|
||||
containerd config default > "$containerd_conf_file"
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user