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>
20 lines
579 B
Bash
Executable File
20 lines
579 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Create ComfyUI data directories on the data disk.
|
|
|
|
ensure_comfyui_dirs() {
|
|
local data_root="${1:-/data}"
|
|
mkdir -p \
|
|
"${data_root}/apps/comfyui/storage" \
|
|
"${data_root}/apps/comfyui/models" \
|
|
"${data_root}/apps/comfyui/cache/hf-hub" \
|
|
"${data_root}/apps/comfyui/cache/torch-hub" \
|
|
"${data_root}/apps/comfyui/input" \
|
|
"${data_root}/apps/comfyui/output" \
|
|
"${data_root}/apps/comfyui/custom_nodes" \
|
|
"${data_root}/apps/comfyui/workflows"
|
|
}
|
|
|
|
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
|
|
ensure_comfyui_dirs "${1:-/data}"
|
|
fi
|