From a51e4c55812c92cb8369f93fd615bc02c503d979 Mon Sep 17 00:00:00 2001 From: Riccardo Pittau Date: Thu, 16 Nov 2023 12:38:30 +0100 Subject: [PATCH] Run gpasswd with sudo It won't work properly in non root environments --- 01_prepare_host.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/01_prepare_host.sh b/01_prepare_host.sh index 4b070759a..8bf36eff7 100755 --- a/01_prepare_host.sh +++ b/01_prepare_host.sh @@ -89,7 +89,7 @@ fi # Allow local non-root-user access to libvirt if ! id "${USER}" | grep -q libvirt; then sudo usermod -a -G "libvirt" "${USER}" - gpasswd -a "${USER}" libvirt + sudo gpasswd -a "${USER}" libvirt fi if [[ "${EPHEMERAL_CLUSTER}" = "minikube" ]]; then