Update v-backup-user

This commit is contained in:
myvesta 2020-09-18 00:46:38 +02:00 committed by GitHub
commit 1f63bf12e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -60,8 +60,8 @@ let u_disk=$(grep "U_DISK=" $VESTA/data/users/$user/user.conf |cut -f 2 -d \')*2
let v_disk=$(($(stat -f --format="%a*%S" $BACKUP)))/1024/1024
if [ "$u_disk" -gt "$v_disk" ]; then
echo "available space on disk: $v_disk" |tee $BACKUP/$user.log
echo "account size : $u_account" |tee $BACKUP/$user.log
echo "available space on disk: $v_disk" |tee $BACKUP/$user.log
echo "needed space on disk : $u_disk" |tee $BACKUP/$user.log
echo "not enough diskspace available to perform the backup." |$SENDMAIL -s "$subj" $email $notify
check_result $E_LIMIT "not enough diskspace available to perform the backup."