mirror of
https://github.com/vmstan/gravity-sync.git
synced 2024-08-30 18:22:11 +00:00
Check for dbclient on validation
This commit is contained in:
parent
da66934939
commit
df82e8d6d0
@ -589,8 +589,15 @@ function validate_os_sshpass {
|
|||||||
|
|
||||||
MESSAGE="Validating SSH Connection to ${REMOTE_HOST}"
|
MESSAGE="Validating SSH Connection to ${REMOTE_HOST}"
|
||||||
echo_stat
|
echo_stat
|
||||||
|
if hash ssh 2>/dev/null
|
||||||
|
then
|
||||||
timeout 5 ${SSHPASSWORD} ${SSH_CMD} -p ${SSH_PORT} -i '$HOME/${SSH_PKIF}' -o StrictHostKeyChecking=no ${REMOTE_USER}@${REMOTE_HOST} 'exit' >/dev/null 2>&1
|
timeout 5 ${SSHPASSWORD} ${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
|
||||||
|
elif hash dbclient ssh 2>/dev/null
|
||||||
|
then
|
||||||
|
timeout 5 ${SSHPASSWORD} ${SSH_CMD} -p ${SSH_PORT} -i '$HOME/${SSH_PKIF}' ${REMOTE_USER}@${REMOTE_HOST} 'exit' >/dev/null 2>&1
|
||||||
|
error_validate
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user