Compare commits

...

1 commit

Author SHA1 Message Date
dev-qwen2
ec3b51724f fix: [nomad-step-3] S3-fix-3 — host-volume dirs need 0777 for non-root containers (#953)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/push/nomad-validate Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
ci/woodpecker/pr/nomad-validate Pipeline was successful
2026-04-17 10:00:16 +00:00

View file

@ -116,7 +116,7 @@ if [ "$dry_run" = true ]; then
[dry-run] Step 4/9: create host-volume dirs under /srv/disinto/ [dry-run] Step 4/9: create host-volume dirs under /srv/disinto/
EOF EOF
for d in "${HOST_VOLUME_DIRS[@]}"; do for d in "${HOST_VOLUME_DIRS[@]}"; do
printf ' → install -d -m 0755 %s\n' "$d" printf ' → install -d -m 0777 %s\n' "$d"
done done
cat <<EOF cat <<EOF
@ -280,8 +280,10 @@ for d in "${HOST_VOLUME_DIRS[@]}"; do
log "unchanged: ${d}" log "unchanged: ${d}"
else else
log "creating: ${d}" log "creating: ${d}"
install -d -m 0755 -o root -g root "$d" install -d -m 0777 -o root -g root "$d"
fi fi
# Ensure correct permissions (fixes pre-existing 0755 dirs on re-run)
chmod 0777 "$d"
done done
# ── Step 5/9: /etc/nomad.d/server.hcl + client.hcl ─────────────────────────── # ── Step 5/9: /etc/nomad.d/server.hcl + client.hcl ───────────────────────────