Menu

#5416 Mysql backup.pl script undefined variables cause failure in e-mail notifications

1.950
closed-fixed
nobody
None
5
2020-10-16
2020-10-15
Aria Bamdad
No

The mysql module via the Backup All Databases function allows for backups to have an email address setup via the "Send backup status email to" . This e-mail is sent for when there is a failure (default), sucess or for each backup. However, the script /usr/libexec/webmin/mysql/backup.pl has a bug where the variables $email and $notify are defined AFTER the code section near the begining where a check is made to see if the database is up or down. If the database is down, the code segment calls the EMAIL routine to send the error message but since the two variables mentioned above are unset, no email notification is sent.

The two variables would need to be setup prior to checking if the database is up or down so that a database down condition is properly reported.

Thansk.

Discussion

  • Jamie Cameron

    Jamie Cameron - 2020-10-16
    • status: open --> closed-fixed
     
  • Jamie Cameron

    Jamie Cameron - 2020-10-16

    Thanks - we'll fix this in the next release of Webmin

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.