harbor/tests/hostcfg.sh
yhua123 ca16841c51 Update hostcfg.sh
review Deploy/harbor.cfg
2016-06-15 12:39:31 +08:00

6 lines
171 B
Bash
Executable File

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