Files
umbrel-apps/booklore/hooks/pre-start
T
2026-07-24 11:57:11 +10:00

11 lines
359 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
# App updates do not copy newly added data directories, so ensure BookDrop's
# bind-mount source exists before Docker starts the container.
APP_DIR="${APP_DATA_DIR:-$(readlink -f "$(dirname "${BASH_SOURCE[0]}")/..")}"
BOOKDROP_DIR="${APP_DIR}/data/bookdrop"
mkdir -p "${BOOKDROP_DIR}"
chown 1000:1000 "${BOOKDROP_DIR}"