mirror of
https://github.com/iflytek/skillhub.git
synced 2026-10-08 03:07:51 +00:00
fix: include --home parameter in shutdown command
When starting with a custom --home directory, the generated shutdown command now includes the same --home parameter to ensure it can find the correct compose files.
This commit is contained in:
parent
fff64ac42c
commit
7238da60ed
1 changed files with 5 additions and 1 deletions
|
|
@ -233,13 +233,17 @@ case "$COMMAND" in
|
|||
run_compose up -d
|
||||
fi
|
||||
PUBLIC_URL="${SKILLHUB_PUBLIC_BASE_URL_VALUE:-http://localhost}"
|
||||
HOME_ARG=""
|
||||
if [ "$SKILLHUB_HOME" != "$SKILLHUB_HOME_DEFAULT" ]; then
|
||||
HOME_ARG=" --home $SKILLHUB_HOME"
|
||||
fi
|
||||
cat <<EOF
|
||||
SkillHub runtime started.
|
||||
Web UI: $PUBLIC_URL
|
||||
Backend API: http://localhost:8080
|
||||
Runtime dir: $SKILLHUB_HOME
|
||||
Stop with:
|
||||
curl -fsSL $SKILLHUB_RAW_BASE/scripts/runtime.sh | sh -s -- down
|
||||
curl -fsSL $SKILLHUB_RAW_BASE/scripts/runtime.sh | sh -s -- down$HOME_ARG
|
||||
EOF
|
||||
;;
|
||||
down)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue