Add service verification to confirm successful installation

This commit is contained in:
Whispering Wind
2025-05-16 11:42:22 +03:30
committed by GitHub
parent 2e35c62c48
commit fe7fa3cd2d
2 changed files with 17 additions and 6 deletions

View File

@ -97,12 +97,13 @@ success "Python environment ready."
# ========== Scheduler ==========
info "Ensuring scheduler is set..."
source "$HYSTERIA_INSTALL_DIR/core/scripts/scheduler.sh"
if ! check_scheduler_service; then
info "Installing Hysteria scheduler service..."
setup_hysteria_scheduler
success "Scheduler service configured."
else
success "Scheduler already set."
if ! verify_scheduler_service; then
error "Warning: Scheduler service installation may have issues"
fi
fi
# ========== Restart Services ==========