mirror of
https://github.com/vmstan/gravity-sync.git
synced 2024-08-30 18:22:11 +00:00
Comment the entire block
This commit is contained in:
parent
fc030ba9bf
commit
fdeb2be94f
@ -625,21 +625,21 @@ function validate_os_sshpass {
|
|||||||
${SSH_SEND} >/dev/null 2>&1
|
${SSH_SEND} >/dev/null 2>&1
|
||||||
error_validate
|
error_validate
|
||||||
|
|
||||||
if hash ssh 2>/dev/null
|
# if hash ssh 2>/dev/null
|
||||||
then
|
# then
|
||||||
if [ -z "$SSHPASSWORD" ]
|
# if [ -z "$SSHPASSWORD" ]
|
||||||
then
|
# then
|
||||||
# timeout 5 ${SSH_CMD} -p ${SSH_PORT} -i "$HOME/${SSH_PKIF}" -o StrictHostKeyChecking=no ${REMOTE_USER}@${REMOTE_HOST} 'exit' >/dev/null 2>&1
|
# timeout 5 ${SSH_CMD} -p ${SSH_PORT} -i "$HOME/${SSH_PKIF}" -o StrictHostKeyChecking=no ${REMOTE_USER}@${REMOTE_HOST} 'exit' >/dev/null 2>&1
|
||||||
# error_validate
|
# error_validate
|
||||||
else
|
# else
|
||||||
# timeout 5 ${SSHPASSWORD} ${SSH_CMD} -p ${SSH_PORT} -o StrictHostKeyChecking=no ${REMOTE_USER}@${REMOTE_HOST} 'exit' >/dev/null 2>&1
|
# timeout 5 ${SSHPASSWORD} ${SSH_CMD} -p ${SSH_PORT} -o StrictHostKeyChecking=no ${REMOTE_USER}@${REMOTE_HOST} 'exit' >/dev/null 2>&1
|
||||||
# error_validate
|
# error_validate
|
||||||
fi
|
# fi
|
||||||
elif hash dbclient 2>/dev/null
|
# elif hash dbclient 2>/dev/null
|
||||||
then
|
# then
|
||||||
# timeout 5 ${SSHPASSWORD} ${SSH_CMD} -p ${SSH_PORT} -i "$HOME/${SSH_PKIF}" ${REMOTE_USER}@${REMOTE_HOST} 'exit' >/dev/null 2>&1
|
# timeout 5 ${SSHPASSWORD} ${SSH_CMD} -p ${SSH_PORT} -i "$HOME/${SSH_PKIF}" ${REMOTE_USER}@${REMOTE_HOST} 'exit' >/dev/null 2>&1
|
||||||
# error_validate
|
# error_validate
|
||||||
fi
|
# fi
|
||||||
}
|
}
|
||||||
|
|
||||||
## Determine SSH Pathways
|
## Determine SSH Pathways
|
||||||
|
Loading…
Reference in New Issue
Block a user