Set retries of send & checksum in 3 (ks-upv/upa/upf)

This commit is contained in:
q3aql 2021-03-29 18:26:37 +02:00
parent 80f6ed1bf4
commit 7fd5b59ae0
3 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -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