]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
setup_container_runtime.sh: Add missing sudo 2358/head
authorZack Cerza <zack@cerza.org>
Mon, 21 Apr 2025 22:59:17 +0000 (16:59 -0600)
committerZack Cerza <zack@cerza.org>
Mon, 21 Apr 2025 22:59:17 +0000 (16:59 -0600)
... to the apt update invocation.

Signed-off-by: Zack Cerza <zack@cerza.org>
scripts/setup_container_runtime.sh

index 6c72c4f16f5dad6bd3694b2c754800689c3394b8..95bd3f53eb9f337b1680b999ff226bd502fafb89 100755 (executable)
@@ -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