Changed order of -s in the mail call for compatibility, from
[matthijs/upstream/backupninja.git] / src / backupninja.in
index 16ac7a7dc5e5417ffeae1f64b23b427ea4a562f8..fb6cc16e39eea4d4f917662bff30f5b63017c41f 100755 (executable)
@@ -526,7 +526,7 @@ if [ $doit == 1 ]; then
                        echo ${messages[$i]}
                done
                echo -e "$errormsg"
-       } | mail $reportemail -s "backupninja: $hostname $subject"
+       } | mail -s "backupninja: $hostname $subject" $reportemail
 fi
 
 if [ $actions_run != 0 ]; then