mirror of
https://github.com/getumbrel/umbrel-apps.git
synced 2026-11-22 14:01:34 +03:00
Co-authored-by: Kai Chappel <kaichappel@users.noreply.github.com>
13 lines
372 B
Bash
Executable File
13 lines
372 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
# ThunderHub 0.18.0 runs as the node user. Existing installs may have
|
|
# root-owned data from older packages, so migrate the writable data mount
|
|
# before the container starts.
|
|
DESIRED_OWNER="1000:1000"
|
|
THUNDERHUB_DATA_DIR="${APP_DATA_DIR}/data"
|
|
|
|
mkdir -p "${THUNDERHUB_DATA_DIR}"
|
|
|
|
chown -R "${DESIRED_OWNER}" "${THUNDERHUB_DATA_DIR}"
|