mirror of
https://github.com/vmstan/gravity-sync.git
synced 2024-08-30 18:22:11 +00:00
Thing down flip it and reverse it
This commit is contained in:
parent
dc75b2b7ae
commit
e10c202601
@ -1017,15 +1017,15 @@ function detect_remotersync {
|
||||
MESSAGE="Validating RSYNC Installed on ${REMOTE_HOST}"
|
||||
echo_stat
|
||||
|
||||
REMOTERSYNC=$(${SSHPASSWORD} ${SSH_CMD} -p ${SSH_PORT} -i "$HOME/${SSH_PKIF}" ${REMOTE_USER}@${REMOTE_HOST} "hash rsync")
|
||||
REMOTERSYNC=$(${SSHPASSWORD} ${SSH_CMD} -p ${SSH_PORT} -i "$HOME/${SSH_PKIF}" ${REMOTE_USER}@${REMOTE_HOST} "hash rsync") >/dev/null 2>&1
|
||||
|
||||
if [ "${REMOTERSYNC}" == "-bash: hash: rsync: not found" ]
|
||||
if [ "${REMOTERSYNC}" == "" ]
|
||||
then
|
||||
echo_good
|
||||
else
|
||||
echo_fail
|
||||
MESSAGE="Please install RSYNC on ${REMOTE_HOST}"
|
||||
echo_warn
|
||||
else
|
||||
echo_good
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user