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
9af8f661
Commit
9af8f661
authored
Apr 11, 2016
by
A. Täffner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
db permissions patch
parent
de7d2617
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
install/lib/installer_base.lib.php
install/lib/installer_base.lib.php
+16
-0
No files found.
install/lib/installer_base.lib.php
View file @
9af8f661
...
...
@@ -658,6 +658,22 @@ class installer_base {
if
(
!
$this
->
dbmaster
->
query
(
$query
,
$value
[
'db'
]
.
'.mail_backup'
,
$value
[
'user'
],
$host
))
{
$this
->
warning
(
'Unable to set rights of user in master database: '
.
$value
[
'db'
]
.
"
\n
Query: "
.
$query
.
"
\n
Error: "
.
$this
->
dbmaster
->
errorMessage
);
}
$query
=
"GRANT SELECT, UPDATE ON ?? TO ?@?"
;
if
(
$verbose
){
echo
$query
.
"
\n
"
;
}
if
(
!
$this
->
dbmaster
->
query
(
$query
,
$value
[
'db'
]
.
'.dns_soa'
,
$value
[
'user'
],
$host
))
{
$this
->
warning
(
'Unable to set rights of user in master database: '
.
$value
[
'db'
]
.
"
\n
Query: "
.
$query
.
"
\n
Error: "
.
$this
->
dbmaster
->
errorMessage
);
}
$query
=
"GRANT SELECT, UPDATE ON ?? TO ?@?"
;
if
(
$verbose
){
echo
$query
.
"
\n
"
;
}
if
(
!
$this
->
dbmaster
->
query
(
$query
,
$value
[
'db'
]
.
'.dns_rr'
,
$value
[
'user'
],
$host
))
{
$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