Commit a7a59a17 authored by root's avatar root

更改IP为配置文件

parent c4848fce
......@@ -3,9 +3,13 @@ target_ip=$1
IP_host_first="192.168.4."
config_files=/home/config_files
script_path=/home/qa-deploy-utils/qa_shell_script
pwd_path="/home/qa-deploy-utils/qa_shell_script"
config_server="$pwd_path/config_server"
project_path=`cat $config_server/get_env_ip.sh`
if [[ $target_ip == "ALL" ]]; then
for ip_last_num in 12 13 14 15 16 17 24 151 152
for ip_last_num in $project_path
do
expect -c "
set timeout 10
......
IP_host=3 12 13 14 15 16 17 24 151 152
for i in ${IP_HOST[@]}
do
echo $i
done
\ No newline at end of file
12 13 14 15 16 17 22 24 50 151 152
#!/bin/bash
IP_host_first="192.168.4."
for ip_last_num in 3 12 13 14 15 16 17 24 151 152
pwd_path="/home/qa-deploy-utils/qa_shell_script"
config_server="$pwd_path/config_server"
project_path=`cat $config_server/get_env_ip.sh`
for ip_last_num in $project_path
do
expect -c "
set timeout 10
......@@ -12,4 +19,4 @@ for ip_last_num in 3 12 13 14 15 16 17 24 151 152
expect \"]#\"
send \"exit\r\"
expect eof;"
done
\ No newline at end of file
done
......@@ -4,7 +4,7 @@ public_ip="139.198.2.95"
mkdir /home/sub_config_file_dont_rm
for ip_last_num in 12 13 14 15 16 17 24 50 151 152
for ip_last_num in 12 13 14 15 16 17 22 24 50 151 152
do
cd /home/sub_config_file_dont_rm
mkdir ${IP_host_first}${ip_last_num}
......
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