Till Brehm
2014-02-16 b7899214010fbb4938cde2fba0ded4c38b893de6
Fixed: FS#3222 - Backup cleaner bug
1 files modified
3 ■■■■■ changed files
server/cron_daily.php 3 ●●●●● patch | view | raw | blame | history
server/cron_daily.php
@@ -1230,6 +1230,9 @@
                    $web_backup_dir = realpath($backup_dir.'/web'.$web_id);
                    if(is_dir($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);
                    }
                }
            }