Actualizar 02-migrate-peers.sh
This commit is contained in:
parent
2b74c5a72e
commit
d83265843e
1 changed files with 3 additions and 1 deletions
|
|
@ -64,6 +64,8 @@ echo "[START-02] $(date '+%Y-%m-%d %H:%M:%S')" >> "$LOG"
|
|||
sep
|
||||
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/wg0-legacy.conf" ] || fail "No peer backup found."
|
||||
[ -f "$BACKUP_DIR/public_key" ] || fail "No public key backup found."
|
||||
|
|
@ -265,4 +267,4 @@ echo " Existing users reconnect automatically"
|
|||
echo " without new configuration."
|
||||
echo ""
|
||||
echo " Log: cat $LOG"
|
||||
echo "========================================="
|
||||
echo "========================================="
|
||||
Loading…
Reference in a new issue