Commit 01d12057 authored by vogelor's avatar vogelor
Browse files

Added new Table for remote-actions to the installer

Set the user-rights for this table in the installer
parent cbff9d43
......@@ -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']."';";
......
......@@ -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;
-- --------------------------------------------------------
--
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment