Skip to content

Commit

Permalink
chore: add backup name to error telegram message
Browse files Browse the repository at this point in the history
  • Loading branch information
erfjab committed Sep 27, 2024
1 parent 0a2016f commit c35b3ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ $(echo -e "$LOGS")
$(echo -e "$COMMANDS")
if ! $compression_full_cmd "\$backup_name" ${directories[@]}; then
message="Failed to compress files. Please check the server."
message="Failed to compress ${name} files. Please check the server."
echo "\$message"
$send_notification_command
exit 1
Expand All @@ -791,7 +791,7 @@ if ls \${base_name}* > /dev/null 2>&1; then
if $send_file_command; then
echo "Backup part sent successfully: \$file_to_send"
else
message="Failed to send backup part: \$file_to_send. Please check the server."
message="Failed to send ${name} backup part: \$file_to_send. Please check the server."
echo "\$message"
$send_notification_command
exit 1
Expand Down

0 comments on commit c35b3ea

Please sign in to comment.