File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,8 @@ let u_disk=$(grep "U_DISK=" $HESTIA/data/users/$user/user.conf |cut -f 2 -d \')*
7070let v_disk=$(( $(stat - f -- format= "% a*% S" $BACKUP )) )/1024/1024
7171
7272if [ " $u_disk " -gt " $v_disk " ]; then
73- echo " not enough diskspace available to perform the backup." | $SENDMAIL -s " $subj " $email $notify
73+ # Always notify on failure
74+ echo " not enough diskspace available to perform the backup." | $SENDMAIL -s " $subj " $email " yes"
7475 check_result $E_LIMIT " not enough diskspace available to perform the backup."
7576fi
7677
8283tmpdir=$( mktemp -p $BACKUP_TEMP -d)
8384
8485if [ " $? " -ne 0 ]; then
85- echo " Can't create tmp dir $tmpdir " | $SENDMAIL -s " $subj " $email $notify
86+ echo " Can't create tmp dir $tmpdir " | $SENDMAIL -s " $subj " $email " yes "
8687 check_result $E_NOTEXIST " can't create tmp dir"
8788fi
8889
You can’t perform that action at this time.
0 commit comments