idk# Please enter the commit message for your changes. Lines starting
This commit is contained in:
@@ -48,10 +48,12 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
# SSH Key Mapping
|
# SSH Key Mapping
|
||||||
|
declare -A SSH_KEYS
|
||||||
SSH_KEYS["$HOST1|$HOST2"]="/root/.ssh/Gmer4Lfe-rsync-key"
|
SSH_KEYS["$HOST1|$HOST2"]="/root/.ssh/Gmer4Lfe-rsync-key"
|
||||||
SSH_KEYS["$HOST2|$HOST1"]="/root/.ssh/Jayred365-rsync-key"
|
SSH_KEYS["$HOST2|$HOST1"]="/root/.ssh/Jayred365-rsync-key"
|
||||||
|
|
||||||
KEY_ID="$LOCAL_SERVER_NAME|$REMOTE_SERVER_NAME"
|
KEY_ID="$LOCAL_SERVER_NAME|$REMOTE_SERVER_NAME"
|
||||||
|
|
||||||
if [[ -n "${SSH_KEYS[$KEY_ID]}" ]]; then
|
if [[ -n "${SSH_KEYS[$KEY_ID]}" ]]; then
|
||||||
SSH_KEY="${SSH_KEYS[$KEY_ID]}"
|
SSH_KEY="${SSH_KEYS[$KEY_ID]}"
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user