From a0694ee26a212555bb94bd416deeac69d07c1ad2 Mon Sep 17 00:00:00 2001 From: biersoeckli Date: Thu, 11 Dec 2025 14:24:27 +0000 Subject: [PATCH] fix: run Longhorn environment check script with sudo in setup scripts --- setup/setup-canary.sh | 2 +- setup/setup.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup/setup-canary.sh b/setup/setup-canary.sh index b668bb1..c644e76 100644 --- a/setup/setup-canary.sh +++ b/setup/setup-canary.sh @@ -116,7 +116,7 @@ sudo kubectl -n cert-manager get pod # Checking installation of Longhorn sudo apt-get install jq -y -sudo curl -sSfL https://raw.githubusercontent.com/longhorn/longhorn/v1.7.2/scripts/environment_check.sh | bash +sudo curl -sSfL https://raw.githubusercontent.com/longhorn/longhorn/v1.7.2/scripts/environment_check.sh | sudo bash joinTokenForOtherNodes=$(sudo cat /var/lib/rancher/k3s/server/node-token) diff --git a/setup/setup.sh b/setup/setup.sh index 2881e94..2c61ada 100644 --- a/setup/setup.sh +++ b/setup/setup.sh @@ -115,7 +115,7 @@ sudo kubectl -n cert-manager get pod # Checking installation of Longhorn sudo apt-get install jq -y -sudo curl -sSfL https://raw.githubusercontent.com/longhorn/longhorn/v1.7.2/scripts/environment_check.sh | bash +sudo curl -sSfL https://raw.githubusercontent.com/longhorn/longhorn/v1.7.2/scripts/environment_check.sh | sudo bash joinTokenForOtherNodes=$(sudo cat /var/lib/rancher/k3s/server/node-token)