Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Support SIYUAN_WORKSPACE_PATH in Docker (#14286)

Luke Zhu2a00697af7c0
diff --git a/kernel/entrypoint.sh b/kernel/entrypoint.sh
index 399a17f5e5..6c8d65782a 100644
--- a/kernel/entrypoint.sh
+++ b/kernel/entrypoint.sh
@@ -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