Skip to content

Commit e985299

Browse files
committed
Do not notify user on cron backup job.
1 parent f98c084 commit e985299

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ All notable changes to this project will be documented in this file.
3939
- Create a couple of writeable folders in each user home directory (#580).
4040
- Added gnupg/gnupg2 check to prevent issues with pubkey installation.
4141
- Fixed nameserver validation on add new user packages.
42-
- Implement additional debug informations for LE validation, thanks to @shakaran
42+
- Implement additional debug informations for LE validation, thanks to @shakaran.
43+
- Do not notify user if the backups are triggered from cronjob.
4344

4445
## [1.0.5] - 2019-08-06 - Hotfix
4546
### Bugfixes

bin/v-backup-user

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,7 @@ U_BACKUPS=$(grep BACKUP $USER_DATA/backup.conf |wc -l)
935935
update_user_value "$user" '$U_BACKUPS' "$U_BACKUPS"
936936

937937
# Send notification
938-
if [ -e "$BACKUP/$user.log" ]; then
938+
if [ -e "$BACKUP/$user.log" ] && [ "$notify" = "yes" ]; then
939939
cd $BACKUP
940940
subj="$user → backup has been completed"
941941
email=$(get_user_value '$CONTACT')

0 commit comments

Comments
 (0)