Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Zvonimir
ISPConfig 3
Commits
b7899214
Commit
b7899214
authored
Feb 16, 2014
by
Till Brehm
Browse files
Fixed: FS#3222 - Backup cleaner bug
parent
a338978d
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/cron_daily.php
View file @
b7899214
...
...
@@ -1230,6 +1230,9 @@ if($backup_dir != '') {
$web_backup_dir
=
realpath
(
$backup_dir
.
'/web'
.
$web_id
);
if
(
is_dir
(
$web_backup_dir
))
{
exec
(
'sudo -u '
.
escapeshellarg
(
$web_user
)
.
' rm -f '
.
escapeshellarg
(
$web_backup_dir
.
'/*'
));
$sql
=
"DELETE FROM web_backup WHERE server_id = "
.
intval
(
$conf
[
'server_id'
])
.
" AND parent_domain_id = "
.
intval
(
$web_id
);
$app
->
db
->
query
(
$sql
);
if
(
$app
->
db
->
dbHost
!=
$app
->
dbmaster
->
dbHost
)
$app
->
dbmaster
->
query
(
$sql
);
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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