Set retries of send & checksum in 3 (ks-upv/upa/upf)
This commit is contained in:
parent
80f6ed1bf4
commit
7fd5b59ae0
|
@ -151,7 +151,7 @@ function sendFile() {
|
|||
sshpass -p ${1} ssh ${3}@${4} rm -rf ${5}/.${6}.* &> /dev/null
|
||||
sleep 5
|
||||
countSend=$(expr ${countSend} + 1)
|
||||
if [ ${countSend} -eq 5 ] ; then
|
||||
if [ ${countSend} -eq 3 ] ; then
|
||||
correct=1
|
||||
fi
|
||||
else
|
||||
|
@ -181,7 +181,7 @@ function checkChecksum() {
|
|||
echo "Retrying..."
|
||||
sleep 5
|
||||
countChecksum=$(expr ${countChecksum} + 1)
|
||||
if [ ${countChecksum} -eq 5 ] ; then
|
||||
if [ ${countChecksum} -eq 3 ] ; then
|
||||
correct=1
|
||||
fi
|
||||
else
|
||||
|
|
|
@ -169,7 +169,7 @@ function sendFile() {
|
|||
sshpass -p ${1} ssh ${3}@${4} rm -rf ${5}/.${6}.* &> /dev/null
|
||||
sleep 5
|
||||
countSend=$(expr ${countSend} + 1)
|
||||
if [ ${countSend} -eq 5 ] ; then
|
||||
if [ ${countSend} -eq 3 ] ; then
|
||||
correct=1
|
||||
fi
|
||||
else
|
||||
|
@ -199,7 +199,7 @@ function checkChecksum() {
|
|||
echo "Retrying..."
|
||||
sleep 5
|
||||
countChecksum=$(expr ${countChecksum} + 1)
|
||||
if [ ${countChecksum} -eq 5 ] ; then
|
||||
if [ ${countChecksum} -eq 3 ] ; then
|
||||
correct=1
|
||||
fi
|
||||
else
|
||||
|
|
|
@ -151,7 +151,7 @@ function sendFile() {
|
|||
sshpass -p ${1} ssh ${3}@${4} rm -rf ${5}/.${6}.* &> /dev/null
|
||||
sleep 5
|
||||
countSend=$(expr ${countSend} + 1)
|
||||
if [ ${countSend} -eq 5 ] ; then
|
||||
if [ ${countSend} -eq 3 ] ; then
|
||||
correct=1
|
||||
fi
|
||||
else
|
||||
|
@ -181,7 +181,7 @@ function checkChecksum() {
|
|||
echo "Retrying..."
|
||||
sleep 5
|
||||
countChecksum=$(expr ${countChecksum} + 1)
|
||||
if [ ${countChecksum} -eq 5 ] ; then
|
||||
if [ ${countChecksum} -eq 3 ] ; then
|
||||
correct=1
|
||||
fi
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue
Block a user