mirror of
https://github.com/getumbrel/umbrel-apps.git
synced 2026-11-24 23:00:13 +03:00
Co-authored-by: Kai Chappel <kaichappel@users.noreply.github.com>
16 lines
509 B
Bash
Executable File
16 lines
509 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.
|
|
mkdir -p \
|
|
"${APP_DATA_DIR}/data/backends" \
|
|
"${APP_DATA_DIR}/data/data" \
|
|
"${APP_DATA_DIR}/data/configuration"
|
|
|
|
chown -R 1000:1000 \
|
|
"${APP_DATA_DIR}/data/backends" \
|
|
"${APP_DATA_DIR}/data/data" \
|
|
"${APP_DATA_DIR}/data/configuration"
|