mirror of
https://github.com/getumbrel/umbrel-apps.git
synced 2026-11-29 08:39:46 +03:00
18 lines
513 B
Bash
Executable File
18 lines
513 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
# LocalAI's upstream compose persists these directories as named volumes.
|
|
# Ensure existing Umbrel installs have matching host-side bind mount directories
|
|
# with ownership suitable for the LocalAI container before startup.
|
|
DATA_ROOT="${APP_DATA_ROOT:-${APP_DATA_DIR}/data}"
|
|
|
|
mkdir -p \
|
|
"${DATA_ROOT}/backends" \
|
|
"${DATA_ROOT}/data" \
|
|
"${DATA_ROOT}/configuration"
|
|
|
|
chown -R 1000:1000 \
|
|
"${DATA_ROOT}/backends" \
|
|
"${DATA_ROOT}/data" \
|
|
"${DATA_ROOT}/configuration"
|