From 6265345998b853e6e41f8731f1fd278e0f54d1e5 Mon Sep 17 00:00:00 2001 From: Mateus Caruccio Date: Wed, 24 Jul 2024 19:21:35 +0100 Subject: [PATCH] Minor fix --- root/etc/profile.d/getup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/etc/profile.d/getup.sh b/root/etc/profile.d/getup.sh index 682e75b..35da084 100755 --- a/root/etc/profile.d/getup.sh +++ b/root/etc/profile.d/getup.sh @@ -681,7 +681,7 @@ if $INSIDE_CONTAINER; then export DOT_CLUSTER_ENV="$CLUSTER_DIR/.cluster.env" source_env "$DOT_CLUSTER_ENV" - if [ -v KUBECTL_VERSION ] && [ -x "/usr/local/bin/kubectl_$KUBECTL_VERSION" ]; then + if [ "$UID" == 0 ] && [ -v KUBECTL_VERSION ] && [ -x "/usr/local/bin/kubectl_$KUBECTL_VERSION" ]; then ln -fs /usr/local/bin/kubectl_$KUBECTL_VERSION /usr/local/bin/kubectl fi else