summaryrefslogtreecommitdiff
path: root/src/lib/stats.source.sh
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-06-15 22:09:02 +0300
committerPaul Buetow <paul@buetow.org>2026-06-15 23:50:41 +0300
commit441f64ac277cf87179c97a1e4ec5a95f69dfe25e (patch)
tree6d971b1511bcea7fe37202cfbf7e76266e3ad2cd /src/lib/stats.source.sh
parente7aeb1f998aef664d3fc6cc21dc8c3b6b7579d01 (diff)
Fix dist root permissions so --sync publishes a readable directory
The dist directory is the swapped-in staging dir, which mktemp -d creates mode 0700. The published album root therefore stayed 0700, so the first `shuriken --sync` created the remote album directory 0700 and the web server (daemon) could not read it -- requiring a manual chmod 755 on each mirror. Relax the staging dir to the umask-default directory mode right after mktemp -d (what mkdir would have produced), so the dist root matches its subdirectories and is served/synced with sane permissions. Add a regression test asserting the dist root mode equals its photos/ subdirectory mode. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'src/lib/stats.source.sh')
0 files changed, 0 insertions, 0 deletions