mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-02 13:10:28 +08:00
🎨 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:
parent
c3f53b4c3e
commit
2a00697af7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user