fix(installer): stop existing service before smoke test to avoid port conflict
This commit is contained in:
parent
ce418b6f0c
commit
16f4870efe
1 changed files with 4 additions and 1 deletions
|
|
@ -405,6 +405,9 @@ fi
|
||||||
# ============================================================
|
# ============================================================
|
||||||
header "── Verification ──"
|
header "── Verification ──"
|
||||||
|
|
||||||
|
$SUDO systemctl stop nextwks 2>/dev/null || true
|
||||||
|
sleep 1
|
||||||
|
|
||||||
"$BIN_DIR/core" -config "$CONFIG_FILE" &
|
"$BIN_DIR/core" -config "$CONFIG_FILE" &
|
||||||
SMOKE_PID=$!
|
SMOKE_PID=$!
|
||||||
sleep 2
|
sleep 2
|
||||||
|
|
@ -412,7 +415,7 @@ sleep 2
|
||||||
if command -v curl &>/dev/null; then
|
if command -v curl &>/dev/null; then
|
||||||
RESPONSE=$(curl -s --max-time 3 http://localhost:8080/api/health 2>/dev/null || echo "")
|
RESPONSE=$(curl -s --max-time 3 http://localhost:8080/api/health 2>/dev/null || echo "")
|
||||||
if [ "$RESPONSE" = '{"status":"ok"}' ]; then
|
if [ "$RESPONSE" = '{"status":"ok"}' ]; then
|
||||||
success "Server started OK"
|
success "Health check passed"
|
||||||
|
|
||||||
# Create admin user
|
# Create admin user
|
||||||
info "Creating admin user..."
|
info "Creating admin user..."
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue