Commit 1a1cf58a authored by qa_quantgroup's avatar qa_quantgroup

dfd

parent 37f3b790
...@@ -18,16 +18,17 @@ function tranceConfig() ...@@ -18,16 +18,17 @@ function tranceConfig()
ip_host: $ip_host ip_host: $ip_host
file_name: $file_name file_name: $file_name
" "
if [ "$type_" = "java" ] expect -c "
then set timeout 10
sed -i "N;s#$source_str#$target_str#g" $base_path/$ip_host/java/$file_name spawn ssh root@$2
sed -i "N;s#$source_str#$target_str#g" $base_path/$ip_host/public/java/$file_name expect \"]#\"
send \"sed -i \"N;s#$source_str#$target_str#g\" $base_path/$ip_host/$type_/$file_name\r\"
elif [ "$type_" = "ui" ] expect \"]#\"
then send \"sed -i \"N;s#$source_str#$target_str#g\" $base_path/$ip_host/public/$type_/$file_name\r\"
sed -i "N;s#$source_str#$target_str#g" $base_path/$ip_host/ui/$file_name expect \"]#\"
sed -i "N;s#$source_str#$target_str#g" $base_path/$ip_host/public/ui/$file_name send \"exit\r\"
fi expect eof;"
} }
echo "部署时间大约需要10分钟,请确保重启应用时,配置文件不再更改。。。" echo "部署时间大约需要10分钟,请确保重启应用时,配置文件不再更改。。。"
echo "step 1 更改配置文件" echo "step 1 更改配置文件"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment