mirror of
https://github.com/AbdBarho/stable-diffusion-webui-docker.git
synced 2026-01-11 19:20:03 +01:00
28 lines
655 B
Bash
Executable file
28 lines
655 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -Eeuo pipefail
|
|
|
|
BASE_DIRECTORY="/data/config/comfy"
|
|
OUTPUT_DIRECTORY="/data/output"
|
|
|
|
mkdir -vp ${BASE_DIRECTORY}
|
|
mkdir -vp ${BASE_DIRECTORY}/temp
|
|
mkdir -vp ${BASE_DIRECTORY}/user
|
|
mkdir -vp ${BASE_DIRECTORY}/custom_nodes
|
|
mkdir -vp ${OUTPUT_DIRECTORY}
|
|
|
|
# --base-directory BASE_DIRECTORY
|
|
# Set the ComfyUI base directory for models,
|
|
# custom_nodes, input, output, temp, and user directories.
|
|
CLI_ARGS+="${CLI_ARGS} --base-directory ${BASE_DIRECTORY} --output-directory ${OUTPUT_DIRECTORY}"
|
|
|
|
echo ${CLI_ARGS}
|
|
|
|
if [ -f "/data/config/comfy/startup.sh" ]; then
|
|
pushd ${APPLICATION_ROOT}
|
|
. /data/config/comfy/startup.sh
|
|
popd
|
|
fi
|
|
|
|
exec "$@"
|