From be870709688c2008fe04102b12b53100a2e20b59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Berkay=20Tekin=20=C3=96z?= Date: Tue, 22 Oct 2024 18:14:51 +0300 Subject: [PATCH] Prioritize SNAP_CURRENT in containerd paths (#4710) --- microk8s-resources/wrappers/run-containerd-with-args | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/microk8s-resources/wrappers/run-containerd-with-args b/microk8s-resources/wrappers/run-containerd-with-args index 2c3d997043..1af516e43f 100755 --- a/microk8s-resources/wrappers/run-containerd-with-args +++ b/microk8s-resources/wrappers/run-containerd-with-args @@ -26,7 +26,7 @@ fi # containerd-shims need to look for runc in /snap/microk8s/current/usr/bin/runc SNAP_CURRENT=`echo "${SNAP}" | sed -e "s,${SNAP_REVISION},current,"` CURRENT_PATH="$SNAP_CURRENT/usr/sbin:$SNAP_CURRENT/usr/bin:$SNAP_CURRENT/sbin:$SNAP_CURRENT/bin" -export PATH="$SNAP/usr/sbin:$SNAP/usr/bin:$SNAP/sbin:$SNAP/bin:$CURRENT_PATH:$PATH" +export PATH="$CURRENT_PATH:$SNAP/usr/sbin:$SNAP/usr/bin:$SNAP/sbin:$SNAP/bin:$PATH" if is_strict then