mirror of
https://github.com/getumbrel/umbrel-apps.git
synced 2026-11-22 14:01:34 +03:00
Co-authored-by: arquiguru <21201431+arquiguru@users.noreply.github.com> Co-authored-by: nmfretz <nmfretz@gmail.com>
11 lines
359 B
Bash
Executable File
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}"
|