From c2d8cb312a3b402b5b804b7f21c02f2f14dd3b57 Mon Sep 17 00:00:00 2001 From: Vitor Savian Date: Fri, 11 Oct 2024 18:52:24 -0300 Subject: [PATCH 1/2] Add PATH to k3s env in install script Signed-off-by: Vitor Savian --- install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/install.sh b/install.sh index df20ce4e117a..f221e6dab370 100755 --- a/install.sh +++ b/install.sh @@ -963,6 +963,7 @@ create_env_file() { $SUDO chmod 0600 ${FILE_K3S_ENV} sh -c export | while read x v; do echo $v; done | grep -E '^(K3S|CONTAINERD)_' | $SUDO tee ${FILE_K3S_ENV} >/dev/null sh -c export | while read x v; do echo $v; done | grep -Ei '^(NO|HTTP|HTTPS)_PROXY' | $SUDO tee -a ${FILE_K3S_ENV} >/dev/null + sh -c export | while read x v; do echo $v; done | grep -Ei 'PATH' | $SUDO tee -a ${FILE_K3S_ENV} >/dev/null } # --- write systemd service file --- From 02e9060b179a76df1d4b4dafbdc437a127ccb025 Mon Sep 17 00:00:00 2001 From: Vitor Savian Date: Fri, 11 Oct 2024 19:03:37 -0300 Subject: [PATCH 2/2] Remove ' from PATH Signed-off-by: Vitor Savian --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index f221e6dab370..32752520ffe6 100755 --- a/install.sh +++ b/install.sh @@ -963,7 +963,7 @@ create_env_file() { $SUDO chmod 0600 ${FILE_K3S_ENV} sh -c export | while read x v; do echo $v; done | grep -E '^(K3S|CONTAINERD)_' | $SUDO tee ${FILE_K3S_ENV} >/dev/null sh -c export | while read x v; do echo $v; done | grep -Ei '^(NO|HTTP|HTTPS)_PROXY' | $SUDO tee -a ${FILE_K3S_ENV} >/dev/null - sh -c export | while read x v; do echo $v; done | grep -Ei 'PATH' | $SUDO tee -a ${FILE_K3S_ENV} >/dev/null + sh -c export | while read x v; do echo $v; done | grep -E 'PATH' | sed "s/'//g" | $SUDO tee -a ${FILE_K3S_ENV} >/dev/null } # --- write systemd service file ---