🎨 Support SIYUAN_WORKSPACE_PATH in Docker (#14286)

This change makes SIYUAN_WORKSPACE_PATH env variable
update the WORKSPACE_DIR variable in the Docker entrypoint
shell script.
This commit is contained in:
Luke Zhu 2025-03-05 01:24:27 -08:00 committed by GitHub
parent c3f53b4c3e
commit 2a00697af7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -28,8 +28,11 @@ else
adduser --uid "${PUID}" --ingroup "${group_name}" --disabled-password --gecos "" "${user_name}"
fi
# Parse command line arguments for --workspace option
# Parse command line arguments for --workspace option or SIYUAN_WORKSPACE_PATH env variable
# Store other arguments in ARGS for later use
if [[ -n "${SIYUAN_WORKSPACE_PATH}" ]]; then
WORKSPACE_DIR="${SIYUAN_WORKSPACE_PATH}"
fi
ARGS=""
while [[ "$#" -gt 0 ]]; do
case $1 in