Skip to content

Commit 2a00697

Browse files
authored
🎨 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.
1 parent c3f53b4 commit 2a00697

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

kernel/entrypoint.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,11 @@ else
2828
adduser --uid "${PUID}" --ingroup "${group_name}" --disabled-password --gecos "" "${user_name}"
2929
fi
3030

31-
# Parse command line arguments for --workspace option
31+
# Parse command line arguments for --workspace option or SIYUAN_WORKSPACE_PATH env variable
3232
# Store other arguments in ARGS for later use
33+
if [[ -n "${SIYUAN_WORKSPACE_PATH}" ]]; then
34+
WORKSPACE_DIR="${SIYUAN_WORKSPACE_PATH}"
35+
fi
3336
ARGS=""
3437
while [[ "$#" -gt 0 ]]; do
3538
case $1 in

0 commit comments

Comments
 (0)