Added new Table for remote-actions to the installer
Set the user-rights for this table in the installer
| | |
| | | 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']."';"; |
| | |
| | | `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; |
| | | |
| | | -- -------------------------------------------------------- |
| | | |
| | | -- |