#13232 change script mikrotik

This commit is contained in:
Jonathan 2024-04-12 12:32:14 +02:00
parent 6b21f1cd53
commit aea0eabf2f
2 changed files with 3 additions and 1 deletions

View File

@ -7712,6 +7712,8 @@ UPDATE `twelcome_tip` SET url = 'https://pandorafms.com/manual/!current/start?id
DELETE FROM tconfig WHERE `token` = 'legacy_database_ha';
UPDATE tncm_script SET `content` = 'sleep:1
capture:export\n\r 
exit\n\r' where `content` = 'sleep:1
capture:system resource print\n\r 
exit\n\r';
-- Add new columns in tdeployment_hosts
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;

View File

@ -2594,7 +2594,7 @@ INSERT INTO `tncm_script` VALUES
(47,5,''),
(48,7,'enable\n
expect:Password:\s*
_enablepass_\n
capture:show version\n
exit\n'),
(49,0,'sleep:1
exit\n\r'),
(50,1,'sleep:1
capture:system resource print\n\r 
exit\n\r'),
(50,1,'sleep:1
capture:export\n\r 
exit\n\r'),
(51,2,'sleep:1
system backup load name=_nameBackup_ password=_passwordBackup_\n\r
expect:Restore
yes\n\r
exit\n\r'),
(52,3,'sleep:1
capture:/system package print\n\r 
exit\n\r'),
(53,4,'sleep:1
/system routerboard upgrade\n\r
expect:Do
yes\n\r
exit\n\r'),