feature(cli): 增加 cli 模块

cli 模块批量生成服务启停脚本
This commit is contained in:
2023-05-18 11:11:39 +08:00
parent 69314f62ec
commit 296c744b61
13 changed files with 861 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
#!/bin/bash
hosts=(
<#list hosts as host>
${host}
</#list>
)
for host in <#noparse>${hosts[@]}</#noparse>
do
hostname=`ssh $host 'echo $HOSTNAME'`
echo "$host $hostname"
ssh $host 'bash -s' < stop.sh ${runtime.jarPath}/${info.name}.jar
done