diff --git a/server/cron_daily.php b/server/cron_daily.php index 04fc0d85a2ea487ff9a473af4c505aa1c3557207..7c91a465d90ff4528be39cc337f30148bb617688 100644 --- a/server/cron_daily.php +++ b/server/cron_daily.php @@ -665,6 +665,9 @@ if($backup_dir != '') { 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'); } @@ -673,6 +676,8 @@ if($backup_dir != '') { chown($web_path.'/backup', $rec['system_user']); chgrp($web_path.'/backup', $rec['system_group']); } + + $app->system->web_folder_protection($web_path,true); }