#!/usr/bin/env bash # ============================================================================= # WireGuard VPS Tunnel — healthcheck сервера # Проверяет, что интерфейс wg0 активен. # ============================================================================= set -euo pipefail if wg show wg0 &>/dev/null; then exit 0 fi exit 1