From 8342ca1d0427e003ee2de6051d9c3780b5fd4083 Mon Sep 17 00:00:00 2001 From: Archana Shinde Date: Thu, 7 Mar 2019 15:46:21 -0800 Subject: [PATCH] kata-deploy: Add runtime config for crio if it does not exist Rather than add the config for kata-qemu and kata-fc unconditionally, the script now checks if the runtime config exists. If it exists, then do not chnage the path for the runtime. The user may have configured this to a specific path for testing local chnages. Fixes #374 Signed-off-by: Archana Shinde --- kata-deploy/scripts/kata-deploy.sh | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/kata-deploy/scripts/kata-deploy.sh b/kata-deploy/scripts/kata-deploy.sh index eeb3e64f53..43cea045ca 100755 --- a/kata-deploy/scripts/kata-deploy.sh +++ b/kata-deploy/scripts/kata-deploy.sh @@ -57,13 +57,30 @@ function configure_crio() { # backup the CRIO.conf only if a backup doesn't already exist (don't override original) cp -n "$crio_conf_file" "$crio_conf_file_backup" - cat <