#!/usr/bin/env bash # Run on TrueNAS shell once before first deploy. set -euo pipefail IMAGE_ROOT="/mnt/BasePool/Applications/Gallery/data/images" mkdir -p "${IMAGE_ROOT}/portraits" "${IMAGE_ROOT}/paintings/thumbs" chown -R 1001:1001 "/mnt/BasePool/Applications/Gallery" chmod -R u+rwX,g+rwX "/mnt/BasePool/Applications/Gallery" echo "Created ${IMAGE_ROOT} (owner uid 1001 = gallery user in container)"