Update hostcfg.sh

review Deploy/harbor.cfg
This commit is contained in:
yhua123 2016-06-15 12:39:31 +08:00 committed by GitHub
parent 7ae8d54f72
commit ca16841c51

View File

@ -2,3 +2,4 @@
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
sed "s/reg.mydomain.com/$IP/" -i Deploy/harbor.cfg sed "s/reg.mydomain.com/$IP/" -i Deploy/harbor.cfg
cat Deploy/harbor.cfg