Commit 24bad33f authored by tywldx's avatar tywldx

fix

parent 58d047c3
......@@ -20,8 +20,8 @@ addFileHead $filename
function addFile()
{
echo "$1 $2 $3 $4 $5"
echo "[web$2-$1]" >> $4
echo "$1 $2 $3 $4"
echo "[web-$2-$1]" >> $4
echo "type = http" >> $4
echo "local_ip = 192.168.4.$2" >> $4
echo "local_port = $3" >> $4
......@@ -35,10 +35,8 @@ for ip_last in ${ips[@]}
do
for projectAndPort in ${projectAndPort[@]}
do
arr=$(echo $projectAndPort|tr "|" "\n")
port=$arr[1]
project=$arr[0]
addFile $ip_last $arr[0] $arr[1] $filename
var=${projectAndPort//|/ }
addFile $ip_last $var $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