Files
Art-gallery/infra/docker/truenas-setup.sh
T
Danila KhodjaefandCursor 2edf577faf Add dev/prod environments with TrueNAS Docker production deploy.
Split PostgreSQL into gallery_dev and gallery_prod, add Docker/Gitea deploy tooling,
SMB image sync, pgAdmin split script, dev:web on Keenetic :5173, and operator docs.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-04 15:15:19 +03:00

12 lines
406 B
Bash

#!/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)"