diff --git a/Master.conf b/Master.conf index 092d0e2..621c19f 100644 --- a/Master.conf +++ b/Master.conf @@ -48,10 +48,12 @@ fi # SSH Key Mapping +declare -A SSH_KEYS SSH_KEYS["$HOST1|$HOST2"]="/root/.ssh/Gmer4Lfe-rsync-key" SSH_KEYS["$HOST2|$HOST1"]="/root/.ssh/Jayred365-rsync-key" KEY_ID="$LOCAL_SERVER_NAME|$REMOTE_SERVER_NAME" + if [[ -n "${SSH_KEYS[$KEY_ID]}" ]]; then SSH_KEY="${SSH_KEYS[$KEY_ID]}" else