359afb3a59
Infrastructure configs for GMKtec K11 (Docker, vLLM, LocalAI, ComfyUI, control-plane, gpu-fan agent, Server UI with CLI/file explorer/GPU fan curve). Co-authored-by: Cursor <cursoragent@cursor.com>
17 lines
439 B
Bash
Executable File
17 lines
439 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Create LocalAI data directories on the data disk.
|
|
|
|
ensure_localai_dirs() {
|
|
local data_root="${1:-/data}"
|
|
mkdir -p \
|
|
"${data_root}/apps/localai/models" \
|
|
"${data_root}/apps/localai/backends" \
|
|
"${data_root}/apps/localai/configuration" \
|
|
"${data_root}/apps/localai/images" \
|
|
"${data_root}/apps/localai/data"
|
|
}
|
|
|
|
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
|
|
ensure_localai_dirs "${1:-/data}"
|
|
fi
|