release: sync public installer asset install.sh
This commit is contained in:
+9
-3
@@ -766,7 +766,7 @@ set +e
|
|||||||
run_migration
|
run_migration
|
||||||
migration_rc=$?
|
migration_rc=$?
|
||||||
set -e
|
set -e
|
||||||
if (( migration_rc != 0 )); then
|
if [[ $migration_rc -ne 0 ]]; then
|
||||||
persist_installer_log
|
persist_installer_log
|
||||||
if (( EXISTING_DB )); then
|
if (( EXISTING_DB )); then
|
||||||
die "已有数据库迁移失败(退出码:$migration_rc)"
|
die "已有数据库迁移失败(退出码:$migration_rc)"
|
||||||
@@ -774,9 +774,15 @@ if (( migration_rc != 0 )); then
|
|||||||
die "数据库初始化失败(退出码:$migration_rc)"
|
die "数据库初始化失败(退出码:$migration_rc)"
|
||||||
fi
|
fi
|
||||||
printf '数据库初始化完成\n'
|
printf '数据库初始化完成\n'
|
||||||
|
printf '数据库初始化完成\n' >>"$INSTALL_LOG"
|
||||||
progress '启动 XyMediaVault 服务'
|
progress '启动 XyMediaVault 服务'
|
||||||
if ! run_logged "${COMPOSE[@]}" --project-directory "$INSTALL_DIR" --env-file "$INSTALL_DIR/.env" -f "$INSTALL_DIR/compose.yaml" "${COMPOSE_FUSE[@]}" up -d app; then
|
set +e
|
||||||
die 'XyMediaVault 启动失败'
|
run_logged "${COMPOSE[@]}" --project-directory "$INSTALL_DIR" --env-file "$INSTALL_DIR/.env" -f "$INSTALL_DIR/compose.yaml" "${COMPOSE_FUSE[@]}" up -d app
|
||||||
|
app_start_rc=$?
|
||||||
|
set -e
|
||||||
|
if [[ $app_start_rc -ne 0 ]]; then
|
||||||
|
persist_installer_log
|
||||||
|
die "XyMediaVault 启动失败(退出码:$app_start_rc)"
|
||||||
fi
|
fi
|
||||||
wait_for_app_health() {
|
wait_for_app_health() {
|
||||||
local started_at elapsed app_wait_interrupted=0 previous_int previous_term
|
local started_at elapsed app_wait_interrupted=0 previous_int previous_term
|
||||||
|
|||||||
Reference in New Issue
Block a user