Skip to content
Snippets Groups Projects
Commit b7899214 authored by Till Brehm's avatar Till Brehm
Browse files

Fixed: FS#3222 - Backup cleaner bug

parent a338978d
No related branches found
No related tags found
No related merge requests found
...@@ -1230,6 +1230,9 @@ if($backup_dir != '') { ...@@ -1230,6 +1230,9 @@ if($backup_dir != '') {
$web_backup_dir = realpath($backup_dir.'/web'.$web_id); $web_backup_dir = realpath($backup_dir.'/web'.$web_id);
if(is_dir($web_backup_dir)) { if(is_dir($web_backup_dir)) {
exec('sudo -u '.escapeshellarg($web_user).' rm -f '.escapeshellarg($web_backup_dir.'/*')); exec('sudo -u '.escapeshellarg($web_user).' rm -f '.escapeshellarg($web_backup_dir.'/*'));
$sql = "DELETE FROM web_backup WHERE server_id = ".intval($conf['server_id'])." AND parent_domain_id = ".intval($web_id);
$app->db->query($sql);
if($app->db->dbHost != $app->dbmaster->dbHost) $app->dbmaster->query($sql);
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment