From c12c533d1462cdc471c33b016ffdb5eca127f133 Mon Sep 17 00:00:00 2001 From: Eric Ernst Date: Thu, 7 Nov 2019 20:25:12 -0800 Subject: [PATCH] kata-deploy: don't remove pre-existing containerd Append to file if container/config.toml already exists. Fixes: #307 Signed-off-by: Eric Ernst --- kata-deploy/scripts/kata-deploy.sh | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/kata-deploy/scripts/kata-deploy.sh b/kata-deploy/scripts/kata-deploy.sh index 4ffb727ea8..f563a2c83a 100755 --- a/kata-deploy/scripts/kata-deploy.sh +++ b/kata-deploy/scripts/kata-deploy.sh @@ -141,13 +141,10 @@ function configure_containerd() { if [ -f "$containerd_conf_file" ]; then cp "$containerd_conf_file" "$containerd_conf_file_backup" fi - # TODO: While there isn't a default here anyway, it'd probably be best to - # add sed magic to insert into appropriate location if config.toml already exists - # https://github.com/kata-containers/packaging/issues/307 - cat <