Skip to content

Commit d119569

Browse files
author
Till Brehm
committed
Merge branch 'stable-3.1' into 'stable-3.1'
fixed umount backup-dir See merge request !464
2 parents 2b77ca2 + 145175f commit d119569

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

server/lib/classes/system.inc.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1840,17 +1840,17 @@ function umount_backup_dir($backup_dir, $mount_cmd = '/usr/local/ispconfig/serve
18401840
if ($this->is_mounted($backup_dir)){
18411841
exec($mount_cmd);
18421842
sleep(1);
1843-
}
1844-
}
18451843

1846-
$unmounted = $this->is_mounted($backup_dir) == 0 ? true : false;
1847-
if(!$unmounted) {
1848-
//* send email to admin that backup directory could not be unmounted
1849-
$global_config = $app->getconf->get_global_config('mail');
1850-
if($global_config['admin_mail'] != ''){
1851-
$subject = 'Backup directory '.$backup_dir.' could not be unmounted';
1852-
$message = "Backup directory ".$backup_dir." could not be unmounted.\n\nThe command\n\n".$mount_cmd."\n\nfailed.";
1853-
mail($global_config['admin_mail'], $subject, $message);
1844+
$unmounted = $this->is_mounted($backup_dir) == 0 ? true : false;
1845+
if(!$unmounted) {
1846+
//* send email to admin that backup directory could not be unmounted
1847+
$global_config = $app->getconf->get_global_config('mail');
1848+
if($global_config['admin_mail'] != ''){
1849+
$subject = 'Backup directory '.$backup_dir.' could not be unmounted';
1850+
$message = "Backup directory ".$backup_dir." could not be unmounted.\n\nThe command\n\n".$mount_cmd."\n\nfailed.";
1851+
mail($global_config['admin_mail'], $subject, $message);
1852+
}
1853+
}
18541854
}
18551855
}
18561856

0 commit comments

Comments
 (0)