mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 06:03:28 +00:00
Define email and notify variables before they are used https://sourceforge.net/p/webadmin/bugs/5416/
This commit is contained in:
@@ -18,6 +18,9 @@ if ($ARGV[1] eq "--prefix") {
|
||||
$extra_prefix = $ARGV[2];
|
||||
}
|
||||
|
||||
$email = $config{'backup_email_'.($all ? '' : $ARGV[0])};
|
||||
$notify = $config{'backup_notify_'.($all ? '' : $ARGV[0])};
|
||||
|
||||
# Check if MySQL is running
|
||||
$ex = 0;
|
||||
($r, $out) = &is_mysql_running();
|
||||
@@ -36,9 +39,6 @@ else {
|
||||
@dbs = ( $ARGV[0] );
|
||||
}
|
||||
|
||||
$email = $config{'backup_email_'.($all ? '' : $dbs[0])};
|
||||
$notify = $config{'backup_notify_'.($all ? '' : $dbs[0])};
|
||||
|
||||
if ($cmode) {
|
||||
# Run and check before-backup command (for all DBs)
|
||||
$bok = &execute_before(undef, STDOUT, 0, $config{'backup_'}, undef);
|
||||
|
||||
Reference in New Issue
Block a user