diff --git a/setup.sh b/setup.sh index 977257e..9449c9c 100755 --- a/setup.sh +++ b/setup.sh @@ -441,6 +441,11 @@ sudo -u "$SVC_USER" XDG_RUNTIME_DIR="/run/user/$SVC_UID" \ # failure we keep the base image rather than break pod launches. if [ -f "$SRC_DIR/pods/Containerfile" ]; then log "building member pod image (localhost/agentbbs-pod:latest)" + # The checkout is written by root under umask 027/077, so pods/ lands 0600 + # and the rootless build (as $SVC_USER) failed with "open .../Containerfile: + # permission denied", silently keeping a stale image. The build context holds + # no secrets: make it world-readable before building. + chmod -R a+rX "$SRC_DIR/pods" if sudo -u "$SVC_USER" XDG_RUNTIME_DIR="/run/user/$SVC_UID" \ podman build -t localhost/agentbbs-pod:latest \ -f "$SRC_DIR/pods/Containerfile" "$SRC_DIR/pods" >/dev/null 2>&1; then