Commit 58d047c3 authored by tywldx's avatar tywldx

d

parent f90d884f
......@@ -9,17 +9,18 @@ ips=`cat $config_server/get_env_ip.sh`
function addFileHead()
{
rm -rf $1
echo "[common]" >> $1
echo "server_addr = 127.0.0.1" >> $1
echo "server_port = 7000" >> $1
echo "privilege_token = 12345678" >> $1
echo " " >> $1
echo "[common]" >> $1
echo "server_addr = 127.0.0.1" >> $1
echo "server_port = 7000" >> $1
echo "privilege_token = 12345678" >> $1
echo " " >> $1
}
addFileHead $filename
function addFile()
{
echo "$1 $2 $3 $4 $5"
echo "[web$2-$1]" >> $4
echo "type = http" >> $4
echo "local_ip = 192.168.4.$2" >> $4
......@@ -37,7 +38,6 @@ do
arr=$(echo $projectAndPort|tr "|" "\n")
port=$arr[1]
project=$arr[0]
echo "$ip_last $arr[0] $arr[1] "
addFile $ip_last $arr[0] $arr[1] $filename
done
done
......
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