2025-12-30 11:09:50 +08:00
|
|
|
|
showRunStrategy: true
|
2025-04-27 15:11:50 +08:00
|
|
|
|
default:
|
|
|
|
|
|
strategy:
|
|
|
|
|
|
runStrategy: 1
|
|
|
|
|
|
name: hostShellExecute
|
|
|
|
|
|
title: 主机-执行远程主机脚本命令
|
|
|
|
|
|
icon: tabler:brand-powershell
|
|
|
|
|
|
group: host
|
|
|
|
|
|
desc: 可以执行重启nginx等操作让证书生效
|
|
|
|
|
|
input:
|
|
|
|
|
|
accessId:
|
|
|
|
|
|
title: 主机登录配置
|
|
|
|
|
|
helper: 登录
|
|
|
|
|
|
component:
|
|
|
|
|
|
name: access-selector
|
|
|
|
|
|
type: ssh
|
|
|
|
|
|
required: true
|
|
|
|
|
|
order: 0
|
|
|
|
|
|
script:
|
|
|
|
|
|
title: shell脚本命令
|
|
|
|
|
|
component:
|
|
|
|
|
|
name: a-textarea
|
|
|
|
|
|
vModel: value
|
|
|
|
|
|
rows: 6
|
|
|
|
|
|
placeholder: systemctl restart nginx
|
|
|
|
|
|
helper: 注意:如果目标主机是windows,且终端是cmd,系统会自动将多行命令通过“&&”连接成一行
|
|
|
|
|
|
required: true
|
|
|
|
|
|
order: 0
|
|
|
|
|
|
output: {}
|
|
|
|
|
|
pluginType: deploy
|
2025-12-30 18:32:00 +08:00
|
|
|
|
type: builtIn
|
2025-12-30 11:26:59 +08:00
|
|
|
|
scriptFilePath: ../../../plugins/plugin-host/plugin/host-shell-execute/index.js
|