Actualizar 02-migrate-peers.sh

This commit is contained in:
Zenaku 2026-08-31 15:26:36 +00:00
parent 2b74c5a72e
commit d83265843e

View file

@ -64,6 +64,8 @@ echo "[START-02] $(date '+%Y-%m-%d %H:%M:%S')" >> "$LOG"
sep sep
info "Checking prerequisites..." info "Checking prerequisites..."
docker info &>/dev/null || fail "No Docker access. Run: sudo usermod -aG docker $USER && newgrp docker"
[ -f "$BACKUP_DIR/private_key" ] || fail "No private key backup found." [ -f "$BACKUP_DIR/private_key" ] || fail "No private key backup found."
[ -f "$BACKUP_DIR/wg0-legacy.conf" ] || fail "No peer backup found." [ -f "$BACKUP_DIR/wg0-legacy.conf" ] || fail "No peer backup found."
[ -f "$BACKUP_DIR/public_key" ] || fail "No public key backup found." [ -f "$BACKUP_DIR/public_key" ] || fail "No public key backup found."