Skip to content

Commit 624055a

Browse files
committed
Made backup function compatible with web folder protection feature.
1 parent c8d077e commit 624055a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

server/cron_daily.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -665,6 +665,9 @@ function setConfigVar( $filename, $varName, $varValue ) {
665665
unset($dir_handle);
666666

667667
//* Remove backupdir symlink and create as directory instead
668+
$app->uses('system');
669+
$app->system->web_folder_protection($web_path,false);
670+
668671
if(is_link($web_path.'/backup')) {
669672
unlink($web_path.'/backup');
670673
}
@@ -673,6 +676,8 @@ function setConfigVar( $filename, $varName, $varValue ) {
673676
chown($web_path.'/backup', $rec['system_user']);
674677
chgrp($web_path.'/backup', $rec['system_group']);
675678
}
679+
680+
$app->system->web_folder_protection($web_path,true);
676681

677682
}
678683

0 commit comments

Comments
 (0)