release: sync public installer asset install.sh
This commit is contained in:
+11
-1
@@ -1277,9 +1277,19 @@ if [[ -n $MENU_PROFILES ]]; then
|
||||
else
|
||||
printf '正在创建并启动小雅控制器:xymedia-controller\n'
|
||||
fi
|
||||
if ! run_logged "${COMPOSE[@]}" --profile "$profile" --project-directory "$INSTALL_DIR" --env-file "$INSTALL_DIR/.env" -f "$INSTALL_DIR/compose.yaml" up -d --no-deps "$profile_service"; then
|
||||
if ! run_logged "${COMPOSE[@]}" --profile "$profile" --project-directory "$INSTALL_DIR" --env-file "$INSTALL_DIR/.env" -f "$INSTALL_DIR/compose.yaml" up -d --no-deps --force-recreate "$profile_service"; then
|
||||
if [[ $profile == xiaoya ]]; then
|
||||
profile_state=$(docker inspect --format '{{.State.Status}}' "$XIAOYA_CONTAINER" 2>>"$INSTALL_LOG" || true)
|
||||
else
|
||||
profile_state=$(docker inspect --format '{{.State.Status}}' xymedia-controller 2>>"$INSTALL_LOG" || true)
|
||||
fi
|
||||
if [[ $profile_state == running ]]; then
|
||||
printf '小雅 profile 启动命令返回异常,但目标容器已运行,继续安装:%s\n' "$profile"
|
||||
printf '小雅 profile 启动命令返回异常,但目标容器已运行,继续安装:%s\n' "$profile" >>"$INSTALL_LOG"
|
||||
else
|
||||
die "小雅 profile 启动失败:$profile"
|
||||
fi
|
||||
fi
|
||||
if [[ $profile == xiaoya ]]; then
|
||||
printf '小雅容器已启动:%s\n' "$XIAOYA_CONTAINER"
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user