Skip to content

Commit 4bc794a

Browse files
author
Kristan Kenney
committed
Merge branch 'fix/2020-07_v-download-backup' into staging/fixes
2 parents bc077f8 + af03b8f commit 4bc794a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

bin/v-download-backup

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,8 @@ if [ ! -e "$BACKUP/$backup" ]; then
169169
downloaded='yes'
170170
fi
171171
if [ -z "$downloaded" ]; then
172-
subj="$userDownload of $backup has failed"
173-
$BIN/v-add-user-notification $user "$subj" "Download of $backup has failed because backup file $backup doesn't exist in '${BACKUP}' folder"
172+
subj="Download of $backup failed for $user"
173+
$BIN/v-add-user-notification $user "$subj" "<b>Unable to retrieve backup file from remote server.</b><br><b>Error:</b> $backup file doesn't exist in '${BACKUP}' directory."
174174
sed -i "/v-download-backup $user /d" $HESTIA/data/queue/backup.pipe
175175
check_result $E_NOTEXIST "backup file $backup doesn't exist in '${BACKUP}' folder"
176176
else
@@ -189,10 +189,10 @@ fi
189189
# Send notification
190190
if [ -e "$BACKUP/$backup" ]; then
191191
cd $BACKUP
192-
subj="$userDownload of $backup has been completed"
192+
subj="Download of $backup completed for $user"
193193
email=$(get_user_value '$CONTACT')
194-
echo "Download of $backup has been completed you are able to download it for 12 hours" |$SENDMAIL -s "$subj" $email $notify
195-
$BIN/v-add-user-notification $user "$subj" "Download of $backup has been completed you are able to download it for 12 hours"
194+
echo "Backup file $backup was retrieved from the remote server and will be available to download for 12 hours." | $SENDMAIL -s "$subj" $email $notify
195+
$BIN/v-add-user-notification $user "$subj" "Backup file <b>$backup</b> was retrieved from the remote server and will be available to download for <b>12 hours</b>."
196196
fi
197197

198198
# Cleaning restore queue

0 commit comments

Comments
 (0)