🐳 chore(脚本): 批量自动重启脚本修复config更新问题

This commit is contained in:
luying
2023-04-20 09:47:44 +08:00
parent 6f7700c8b3
commit cc909dd633

View File

@@ -91,14 +91,20 @@ case $input in
while(( $int<=$length ))
do
addr=${sshAddr[$int-1]}
curEnv=${envs[$int-1]}
destUrl='root@'${addr}':/root/zyz/'
echo $destUrl
rsync -av --include '.babelrc' --include '.eslintrc.js' --exclude-from='exclude-file.txt' --progress --inplace --no-owner --no-group --rsh='ssh -p'${port} . ${destUrl}
let "int++"
done
int=1
while(( $int<=$length ))
do
addr=${sshAddr[$int-1]}
curEnv=${envs[$int-1]}
echo $curEnv $addr
sshFun $curEnv $addr
let "int++"
done
echo '$$$'
;;
[nN][oO]|[nN])
echo "No"