mirror of
https://github.com/getumbrel/umbrel-apps.git
synced 2026-11-24 23:00:13 +03:00
12 lines
402 B
Bash
Executable File
12 lines
402 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]}")/..")}"
|
|
DATA_ROOT="${APP_DATA_ROOT:-${APP_DIR}/data}"
|
|
BOOKDROP_DIR="${DATA_ROOT}/bookdrop"
|
|
|
|
mkdir -p "${BOOKDROP_DIR}"
|
|
chown 1000:1000 "${BOOKDROP_DIR}"
|