🐳 chore(脚本): 批量自动重启脚本修复config更新问题
This commit is contained in:
@@ -91,14 +91,20 @@ case $input in
|
|||||||
while(( $int<=$length ))
|
while(( $int<=$length ))
|
||||||
do
|
do
|
||||||
addr=${sshAddr[$int-1]}
|
addr=${sshAddr[$int-1]}
|
||||||
curEnv=${envs[$int-1]}
|
|
||||||
destUrl='root@'${addr}':/root/zyz/'
|
destUrl='root@'${addr}':/root/zyz/'
|
||||||
echo $destUrl
|
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}
|
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
|
sshFun $curEnv $addr
|
||||||
let "int++"
|
let "int++"
|
||||||
done
|
done
|
||||||
echo '$$$'
|
|
||||||
;;
|
;;
|
||||||
[nN][oO]|[nN])
|
[nN][oO]|[nN])
|
||||||
echo "No"
|
echo "No"
|
||||||
|
|||||||
Reference in New Issue
Block a user