From 24cf2b0b9f8ddacae9bb88139aab3dc4ecaff573 Mon Sep 17 00:00:00 2001 From: Ryan Campbell Date: Mon, 10 Jun 2024 16:43:23 +0000 Subject: [PATCH] adding debug --- .devcontainer/features/k3s-on-host/updateContent.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.devcontainer/features/k3s-on-host/updateContent.sh b/.devcontainer/features/k3s-on-host/updateContent.sh index 305912d..74748cc 100755 --- a/.devcontainer/features/k3s-on-host/updateContent.sh +++ b/.devcontainer/features/k3s-on-host/updateContent.sh @@ -385,13 +385,15 @@ function install_k3s() { run_a_script "curl --silent --fail --create-dirs --output /host_var/tmp/devfeature/k3s-on-host/k3s_install.sh -L https://get.k3s.io" fi - if [[ "${USE_CRI_DOCKERD}"==true ]]; then + if [[ "${USE_CRI_DOCKERD}" == true ]]; then debug_log "Adding cri-dockerd to k3s install command..." k3s_extra_commands="${k3s_extra_commands} --docker" fi run_a_script "chmod +x /host_var/tmp/devfeature/k3s-on-host/k3s_install.sh" --disable_log + run_a_script_on_host "cat /var/tmp/devfeature/k3s-on-host/k3s_install.sh" + info_log "Installing k3s on host..." run_a_script_on_host "/var/tmp/devfeature/k3s-on-host/k3s_install.sh ${k3s_extra_commands}" --env INSTALL_K3S_VERSION=${K3S_VERSION} --env INSTALL_K3S_SYMLINK=force }