From: Zack Cerza Date: Mon, 21 Apr 2025 22:59:17 +0000 (-0600) Subject: setup_container_runtime.sh: Add missing sudo X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9d9b6f17f1128bb6f1b48108d10e2e644e152528;p=ceph-build.git setup_container_runtime.sh: Add missing sudo ... to the apt update invocation. Signed-off-by: Zack Cerza --- diff --git a/scripts/setup_container_runtime.sh b/scripts/setup_container_runtime.sh index 6c72c4f1..95bd3f53 100755 --- a/scripts/setup_container_runtime.sh +++ b/scripts/setup_container_runtime.sh @@ -14,7 +14,7 @@ function setup_container_runtime () { if command -v dnf; then sudo dnf install -y podman elif command -v apt-cache; then - apt-get update -q + sudo apt-get update -q VERSION=$(apt-cache show podman | grep Version: | sort -r | awk '/^Version:/{print $2; exit}') if [[ "${VERSION:0:1}" -ge 4 ]]; then DEBIAN_FRONTEND=noninteractive sudo apt-get install -y podman