Added MR changes
This commit is contained in:
parent
887a862783
commit
210ef60b69
|
@ -0,0 +1,19 @@
|
|||
START TRANSACTION;
|
||||
|
||||
ALTER TABLE `tdeployment_hosts` ADD COLUMN `deploy_method` ENUM('SSH', 'HTTP', 'HTTPS') DEFAULT 'SSH';
|
||||
ALTER TABLE `tdeployment_hosts` ADD COLUMN `deploy_port` INT UNSIGNED NOT NULL DEFAULT 22;
|
||||
ALTER TABLE `tdeployment_hosts` ADD COLUMN `server_port` INT UNSIGNED NOT NULL DEFAULT 41121;
|
||||
ALTER TABLE `tdeployment_hosts` ADD COLUMN `temp_folder` VARCHAR(500) DEFAULT '/tmp';
|
||||
|
||||
UPDATE
|
||||
`tdeployment_hosts`, `tconfig_os`
|
||||
SET
|
||||
`tdeployment_hosts`.`deploy_method` = 'HTTP',
|
||||
`tdeployment_hosts`.`deploy_port` = 5985,
|
||||
`tdeployment_hosts`.`temp_folder` = '$env:TEMP'
|
||||
WHERE
|
||||
`tdeployment_hosts`.`id_os` = `tconfig_os`.`id_os` AND `tconfig_os`.`name` = 'Windows' AND `tdeployment_hosts`.`deployed` = 0;
|
||||
|
||||
UPDATE `trecon_task` SET `field4` = 41121 WHERE `type` = 9;
|
||||
|
||||
COMMIT;
|
|
@ -3948,6 +3948,10 @@ CREATE TABLE IF NOT EXISTS `tdeployment_hosts` (
|
|||
`deployed` BIGINT NOT NULL DEFAULT 0 COMMENT 'When it was deployed',
|
||||
`server_ip` VARCHAR(100) DEFAULT NULL COMMENT 'Where to point target agent',
|
||||
`last_err` TEXT,
|
||||
`deploy_method` ENUM('SSH', 'HTTP', 'HTTPS') DEFAULT 'SSH',
|
||||
`deploy_port` INT UNSIGNED NOT NULL DEFAULT 22,
|
||||
`server_port` INT UNSIGNED NOT NULL DEFAULT 41121,
|
||||
`temp_folder` VARCHAR(500) DEFAULT '/tmp',
|
||||
PRIMARY KEY (`id`),
|
||||
FOREIGN KEY (`id_cs`) REFERENCES `tcredential_store`(`identifier`)
|
||||
ON UPDATE CASCADE ON DELETE SET NULL,
|
||||
|
|
Loading…
Reference in New Issue