fix: [nomad-step-3] S3-fix-3 — host-volume dirs need 0777 for non-root containers (#953)
This commit is contained in:
parent
c20b0a8bd2
commit
ec3b51724f
1 changed files with 4 additions and 2 deletions
|
|
@ -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 ───────────────────────────
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue