Skip to content

Commit b789921

Browse files
author
Till Brehm
committed
Fixed: FS#3222 - Backup cleaner bug
1 parent a338978 commit b789921

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

server/cron_daily.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1230,6 +1230,9 @@ function send_notification_email($template, $placeholders, $recipients) {
12301230
$web_backup_dir = realpath($backup_dir.'/web'.$web_id);
12311231
if(is_dir($web_backup_dir)) {
12321232
exec('sudo -u '.escapeshellarg($web_user).' rm -f '.escapeshellarg($web_backup_dir.'/*'));
1233+
$sql = "DELETE FROM web_backup WHERE server_id = ".intval($conf['server_id'])." AND parent_domain_id = ".intval($web_id);
1234+
$app->db->query($sql);
1235+
if($app->db->dbHost != $app->dbmaster->dbHost) $app->dbmaster->query($sql);
12331236
}
12341237
}
12351238
}

0 commit comments

Comments
 (0)