Skip to content
Snippets Groups Projects
Commit f3e413e7 authored by david_williams's avatar david_williams
Browse files

improve promote script to use rsync instead of cp

parent b630c337
No related branches found
No related tags found
No related merge requests found
......@@ -166,11 +166,15 @@ then
if [ !(exitCode = 0) ]
then
nTrys=$(( nTrys + 1 ))
if [ $verboseFlag ]
then
echo "rsync failed with $exitCode. Retrying $nTrys times."
if [ $nTrys > $maxTrys ]
then
echo "Number of re-trys exceeded. rsync exit code: $exitCode"
exit $exitCode
fi
sleep 120
fi
done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment