Просмотр исходного кода

Send "backup has been completed" mail

onbalt 9 лет назад
Родитель
Сommit
20e25b4648
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      bin/v-backup-user

+ 1 - 1
bin/v-backup-user

@@ -811,7 +811,7 @@ sed -i "/v-backup-user $user /d" $VESTA/data/queue/backup.pipe
 if [ -e "$BACKUP/$user.log" ]; then
     subj="$user → backup has been completed"
     email=$(get_user_value '$CONTACT')
-    cat $BACKUP/$user.log #|$SENDMAIL -s "$subj" $email $notify
+    cat $BACKUP/$user.log |$SENDMAIL -s "$subj" $email $notify
     rm $BACKUP/$user.log
 fi