fix build issue

This commit is contained in:
Tan Jiang 2016-07-14 21:22:39 +08:00
parent 6b7919851c
commit bc12816f4d

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/bin/bash
IP=`ip addr s eth0 |grep "inet "|awk '{print $2}' |awk -F "/" '{print $1}'` IP=`ip addr s eth0 |grep "inet "|awk '{print $2}' |awk -F "/" '{print $1}'`
#echo $IP #echo $IP
sudo sed "s/reg.mydomain.org/$IP/" -i Deploy/harbor.cfg sudo sed "s/reg.mydomain.com/$IP/" -i Deploy/harbor.cfg