From 07a6e63a6bd96ba72ac99b35cd182a0cf56c397d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Wed, 20 Sep 2023 08:48:29 +0200 Subject: [PATCH] ci: k8s: rke2: Use sudo to call systemd MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Otherwise we'll face the following error: ``` Failed to enable unit: Interactive authentication required. ``` Signed-off-by: Fabiano FidĂȘncio --- tests/gha-run-k8s-common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/gha-run-k8s-common.sh b/tests/gha-run-k8s-common.sh index f706db5ebf..01d825c284 100644 --- a/tests/gha-run-k8s-common.sh +++ b/tests/gha-run-k8s-common.sh @@ -168,7 +168,7 @@ function deploy_k3s() { function deploy_rke2() { curl -sfL https://get.rke2.io | sudo sh - - systemctl enable --now rke2-server.service + sudo systemctl enable --now rke2-server.service # This is an arbitrary value that came up from local tests sleep 120s