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>
12 lines
406 B
Bash
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)"
|