diff --git a/miyagi-check.sh b/miyagi-check.sh index c9cfd1d..1de760d 100644 --- a/miyagi-check.sh +++ b/miyagi-check.sh @@ -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."