]> git.sven.stormbind.net Git - sven/scripts.git/blobdiff - hetzner/hetznerbackupv2.sh
Call error code variable ERRSTAT, that is what it is called within the code and also...
[sven/scripts.git] / hetzner / hetznerbackupv2.sh
index 0ffc0eccfd47935fd13b5d7b079147fd06464c8e..d934a0267a6fda87dcb2a82ebc183ebee32f64e3 100755 (executable)
@@ -68,8 +68,8 @@ cleanup() {
     if [ $ERRSTAT -eq 0 ]; then
        echo "Backup finished successfully $ENDDATE" >> $SESSIONLOG
     else
-       echo "ERROR Backup FAILED $ENDDATE" >> $SESSIONLOG
-       cat $SESSIONLOG|mail -s "ERROR Backup FAILED $ENDDATE with ERRCODE $ERRSTAT" $ROOTMAIL
+       echo "ERROR Backup FAILED $ENDDATE with ERRSTAT $ERRSTAT" >> $SESSIONLOG
+       cat $SESSIONLOG|mail -s "ERROR Backup FAILED $ENDDATE with ERRSTAT $ERRSTAT" $ROOTMAIL
     fi
    cat $SESSIONLOG >> $LOGFILE
    rm $SESSIONLOG $LOCKFILE