Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
ISPConfig
ISPConfig 3
Commits
2dc842ed
Commit
2dc842ed
authored
Jun 04, 2014
by
Florian Schaal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set grants for slave to mail_backup
parent
58023ffd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
install/lib/installer_base.lib.php
install/lib/installer_base.lib.php
+7
-0
No files found.
install/lib/installer_base.lib.php
View file @
2dc842ed
...
...
@@ -498,6 +498,13 @@ class installer_base {
$this
->
warning
(
'Unable to set rights of user in master database: '
.
$value
[
'db'
]
.
"
\n
Query: "
.
$query
.
"
\n
Error: "
.
$this
->
dbmaster
->
errorMessage
);
}
$query
=
"GRANT SELECT, INSERT, DELETE ON "
.
$value
[
'db'
]
.
".`mail_backup` TO '"
.
$value
[
'user'
]
.
"'@'"
.
$host
.
"' "
;
if
(
$verbose
){
echo
$query
.
"
\n
"
;
}
if
(
!
$this
->
dbmaster
->
query
(
$query
))
{
$this
->
warning
(
'Unable to set rights of user in master database: '
.
$value
[
'db'
]
.
"
\n
Query: "
.
$query
.
"
\n
Error: "
.
$this
->
dbmaster
->
errorMessage
);
}
}
/*
...
...
Write
Preview
Markdown
is supported
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