From d680847c3704413e3fbcb7ef108360b40bc4141d Mon Sep 17 00:00:00 2001
From: Silvio Rhatto <rhatto@riseup.net>
Date: Sat, 24 Dec 2011 11:20:40 -0200
Subject: [PATCH] Abort on rsync error (#3692)

---
 handlers/rsync.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/handlers/rsync.in b/handlers/rsync.in
index ab73051d..ab6496fb 100644
--- a/handlers/rsync.in
+++ b/handlers/rsync.in
@@ -1085,7 +1085,7 @@ for SECTION in $include; do
   $nice $rsync $rsync_options $filelist_flag $excludes $batch_option $orig $dest_path | tee -a $log
 
   if [ "$?" != "0" ]; then
-    warning "Rsync error when trying to transfer $SECTION"
+    fatal "Rsync error when trying to transfer $SECTION"
   fi
 
   update_metadata
-- 
GitLab