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
|
sshpass -p ${1} ssh ${3}@${4} rm -rf ${5}/.${6}.* &> /dev/null
|
||||||
sleep 5
|
sleep 5
|
||||||
countSend=$(expr ${countSend} + 1)
|
countSend=$(expr ${countSend} + 1)
|
||||||
if [ ${countSend} -eq 5 ] ; then
|
if [ ${countSend} -eq 3 ] ; then
|
||||||
correct=1
|
correct=1
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
@ -181,7 +181,7 @@ function checkChecksum() {
|
||||||
echo "Retrying..."
|
echo "Retrying..."
|
||||||
sleep 5
|
sleep 5
|
||||||
countChecksum=$(expr ${countChecksum} + 1)
|
countChecksum=$(expr ${countChecksum} + 1)
|
||||||
if [ ${countChecksum} -eq 5 ] ; then
|
if [ ${countChecksum} -eq 3 ] ; then
|
||||||
correct=1
|
correct=1
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
|
|
@ -169,7 +169,7 @@ function sendFile() {
|
||||||
sshpass -p ${1} ssh ${3}@${4} rm -rf ${5}/.${6}.* &> /dev/null
|
sshpass -p ${1} ssh ${3}@${4} rm -rf ${5}/.${6}.* &> /dev/null
|
||||||
sleep 5
|
sleep 5
|
||||||
countSend=$(expr ${countSend} + 1)
|
countSend=$(expr ${countSend} + 1)
|
||||||
if [ ${countSend} -eq 5 ] ; then
|
if [ ${countSend} -eq 3 ] ; then
|
||||||
correct=1
|
correct=1
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
@ -199,7 +199,7 @@ function checkChecksum() {
|
||||||
echo "Retrying..."
|
echo "Retrying..."
|
||||||
sleep 5
|
sleep 5
|
||||||
countChecksum=$(expr ${countChecksum} + 1)
|
countChecksum=$(expr ${countChecksum} + 1)
|
||||||
if [ ${countChecksum} -eq 5 ] ; then
|
if [ ${countChecksum} -eq 3 ] ; then
|
||||||
correct=1
|
correct=1
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
|
|
@ -151,7 +151,7 @@ function sendFile() {
|
||||||
sshpass -p ${1} ssh ${3}@${4} rm -rf ${5}/.${6}.* &> /dev/null
|
sshpass -p ${1} ssh ${3}@${4} rm -rf ${5}/.${6}.* &> /dev/null
|
||||||
sleep 5
|
sleep 5
|
||||||
countSend=$(expr ${countSend} + 1)
|
countSend=$(expr ${countSend} + 1)
|
||||||
if [ ${countSend} -eq 5 ] ; then
|
if [ ${countSend} -eq 3 ] ; then
|
||||||
correct=1
|
correct=1
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
@ -181,7 +181,7 @@ function checkChecksum() {
|
||||||
echo "Retrying..."
|
echo "Retrying..."
|
||||||
sleep 5
|
sleep 5
|
||||||
countChecksum=$(expr ${countChecksum} + 1)
|
countChecksum=$(expr ${countChecksum} + 1)
|
||||||
if [ ${countChecksum} -eq 5 ] ; then
|
if [ ${countChecksum} -eq 3 ] ; then
|
||||||
correct=1
|
correct=1
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue
Block a user