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
lolo888
ISPConfig 3
Commits
01d12057
Commit
01d12057
authored
May 01, 2010
by
vogelor
Browse files
Added new Table for remote-actions to the installer
Set the user-rights for this table in the installer
parent
cbff9d43
Changes
2
Hide whitespace changes
Inline
Side-by-side
install/lib/installer_base.lib.php
View file @
01d12057
...
...
@@ -333,7 +333,14 @@ 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 SELECT, UPDATE (`action_status`, `response`) ON "
.
$conf
[
'mysql'
][
'master_database'
]
.
".`sys_remoteaction` "
.
"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 SELECT, INSERT , DELETE ON "
.
$conf
[
'mysql'
][
'master_database'
]
.
".`monitor_data` "
.
"TO '"
.
$conf
[
'mysql'
][
'master_ispconfig_user'
]
.
"'@'"
.
$src_host
.
"' "
.
"IDENTIFIED BY '"
.
$conf
[
'mysql'
][
'master_ispconfig_password'
]
.
"';"
;
...
...
install/sql/ispconfig3.sql
View file @
01d12057
...
...
@@ -1148,6 +1148,22 @@ CREATE TABLE `sys_config` (
`value`
varchar
(
255
)
NOT
NULL
)
ENGINE
=
MyISAM
;
--
-- Tabellenstruktur für Tabelle `sys_remoteaction`
--
CREATE
TABLE
`sys_remoteaction`
(
`action_id`
int
(
11
)
unsigned
NOT
NULL
auto_increment
,
`server_id`
int
(
11
)
unsigned
NOT
NULL
,
`tstamp`
int
(
11
)
NOT
NULL
,
`action_type`
varchar
(
20
)
NOT
NULL
,
`action_param`
mediumtext
NOT
NULL
,
`action_status`
enum
(
'pending'
,
'ok'
,
'warning'
,
'error'
)
NOT
NULL
,
`response`
mediumtext
NOT
NULL
,
PRIMARY
KEY
(
`action_id`
)
)
ENGINE
=
MyISAM
;
-- --------------------------------------------------------
--
...
...
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