miyagi-check.sh aktualisiert

This commit is contained in:
2025-07-14 18:19:37 +02:00
parent 8e121cb75c
commit f999ff6a87
+2 -1
View File
@@ -27,6 +27,7 @@ fi
source "$CONFIG_FILE"
REQUIRED_VARS=(
SOURCEHOST
SOURCEPORT
BACKUPSERVER
ZSYNC
@@ -111,7 +112,7 @@ check_and_copy_ssh_key() {
LOG " Prüfe, ob SSH-Key auf $host autorisiert ist ..."
if ssh -p "$SSHPORT" "$host" "grep -qF '$pubkey' ~/.ssh/authorized_keys" 2>/dev/null; then
if ssh -p "$SOURCEPORT" "$host" "grep -qF '$pubkey' ~/.ssh/authorized_keys" 2>/dev/null; then
LOG " SSH-Key ist bereits auf $host hinterlegt."
else
LOG " SSH-Key nicht auf $host vorhanden."