Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
ISPConfig
ISPConfig 3
Commits
af81be94
Commit
af81be94
authored
Jul 23, 2009
by
tbrehm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed database permission problem in multiuser setups.
parent
c60ecdbd
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 @
af81be94
...
...
@@ -301,6 +301,13 @@ class installer_base {
if
(
!
$this
->
dbmaster
->
query
(
$query
))
{
$this
->
error
(
'Unable to create database user in master database: '
.
$conf
[
'mysql'
][
'master_ispconfig_user'
]
.
' Error: '
.
$this
->
dbmaster
->
errorMessage
);
}
$query
=
"GRANT UPDATE(`updated`) ON "
.
$conf
[
'mysql'
][
'master_database'
]
.
".`server` "
.
"TO '"
.
$conf
[
'mysql'
][
'master_ispconfig_user'
]
.
"'@'"
.
$src_host
.
"' "
.
"IDENTIFIED BY '"
.
$conf
[
'mysql'
][
'master_ispconfig_password'
]
.
"';"
;
if
(
!
$this
->
dbmaster
->
query
(
$query
))
{
$this
->
error
(
'Unable to create database user in master database: '
.
$conf
[
'mysql'
][
'master_ispconfig_user'
]
.
' Error: '
.
$this
->
dbmaster
->
errorMessage
);
}
$query
=
"GRANT UPDATE (`ssl_request`, `ssl_cert`, `ssl_action`) ON "
.
$conf
[
'mysql'
][
'master_database'
]
.
".`web_domain` "
.
"TO '"
.
$conf
[
'mysql'
][
'master_ispconfig_user'
]
.
"'@'"
.
$src_host
.
"' "
...
...
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