Skip to content

Commit 52fe9e2

Browse files
author
Florian Schaal
committed
add umount to backup-jobs
1 parent a8995cc commit 52fe9e2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

server/lib/classes/cron.d/500-backup.inc.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,8 @@ public function onRunJob() {
314314
}
315315
}
316316
}
317+
//* end run_backups
318+
if( $server_config['backup_dir_is_mount'] == 'y' ) $app->system->umount_backup_dir($backup_dir);
317319
} else {
318320
//* send email to admin that backup directory could not be mounted
319321
$global_config = $app->getconf->get_global_config('mail');

server/lib/classes/cron.d/500-backup_mail.inc.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,8 @@ public function onRunJob() {
181181
}
182182
}
183183
}
184-
}
184+
if( $server_config['backup_dir_is_mount'] == 'y' ) $app->system->umount_backup_dir($backup_dir);
185+
} //* end run_backups
185186
}
186187

187188
parent::onRunJob();

0 commit comments

Comments
 (0)