tbrehm
2012-10-02 624055af2898e06ef2ea3de3a138d0cd9abcddde
Made backup function compatible with web folder protection feature.
1 files modified
5 ■■■■■ changed files
server/cron_daily.php 5 ●●●●● patch | view | raw | blame | history
server/cron_daily.php
@@ -665,6 +665,9 @@
                unset($dir_handle);
                //* Remove backupdir symlink and create as directory instead
                $app->uses('system');
                $app->system->web_folder_protection($web_path,false);
                if(is_link($web_path.'/backup')) {
                    unlink($web_path.'/backup');
                }
@@ -674,6 +677,8 @@
                    chgrp($web_path.'/backup', $rec['system_group']);
                }
                $app->system->web_folder_protection($web_path,true);
            }
            /* If backup_interval is set to none and we have a