You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: bin/v-download-backup
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -169,8 +169,8 @@ if [ ! -e "$BACKUP/$backup" ]; then
169
169
downloaded='yes'
170
170
fi
171
171
if [ -z"$downloaded" ];then
172
-
subj="$user → Download of $backuphas failed"
173
-
$BIN/v-add-user-notification $user"$subj""Download of $backuphas 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> $backupfile doesn't exist in '${BACKUP}' directory."
174
174
sed -i "/v-download-backup $user /d"$HESTIA/data/queue/backup.pipe
175
175
check_result $E_NOTEXIST"backup file $backup doesn't exist in '${BACKUP}' folder"
176
176
else
@@ -189,10 +189,10 @@ fi
189
189
# Send notification
190
190
if [ -e"$BACKUP/$backup" ];then
191
191
cd$BACKUP
192
-
subj="$user → Download of $backuphas been completed"
192
+
subj="Download of $backupcompleted for $user"
193
193
email=$(get_user_value '$CONTACT')
194
-
echo"Download of$backuphas 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$backupwas 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>."
0 commit comments