Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
Webslice
ISPConfig 3
Commits
624055af
Commit
624055af
authored
Oct 02, 2012
by
tbrehm
Browse files
Made backup function compatible with web folder protection feature.
parent
c8d077e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/cron_daily.php
View file @
624055af
...
...
@@ -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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment