Commit 624055af authored by tbrehm's avatar tbrehm

Made backup function compatible with web folder protection feature.

parent c8d077e4
...@@ -665,6 +665,9 @@ if($backup_dir != '') { ...@@ -665,6 +665,9 @@ if($backup_dir != '') {
unset($dir_handle); unset($dir_handle);
//* Remove backupdir symlink and create as directory instead //* 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')) { if(is_link($web_path.'/backup')) {
unlink($web_path.'/backup'); unlink($web_path.'/backup');
} }
...@@ -673,6 +676,8 @@ if($backup_dir != '') { ...@@ -673,6 +676,8 @@ if($backup_dir != '') {
chown($web_path.'/backup', $rec['system_user']); chown($web_path.'/backup', $rec['system_user']);
chgrp($web_path.'/backup', $rec['system_group']); chgrp($web_path.'/backup', $rec['system_group']);
} }
$app->system->web_folder_protection($web_path,true);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment