[#4] 增加输出bind容器IP到dns.conf
This commit is contained in:
parent
49e01fc472
commit
153a91a458
@ -23,6 +23,11 @@ ln -sf /private/argus/bind/db.argus.com /etc/bind/db.argus.com
|
|||||||
# Set proper ownership
|
# Set proper ownership
|
||||||
chown bind:bind /private/argus/bind/named.conf.local /private/argus/bind/db.argus.com
|
chown bind:bind /private/argus/bind/named.conf.local /private/argus/bind/db.argus.com
|
||||||
|
|
||||||
|
# 记录容器ip地址更新到dns.conf
|
||||||
|
IP=`ifconfig | grep -A 1 eth0 | grep inet | awk '{print $2}'`
|
||||||
|
echo current IP: ${IP}
|
||||||
|
echo ${IP} > /private/argus/etc/dns.conf
|
||||||
|
|
||||||
# Create supervisor log directory
|
# Create supervisor log directory
|
||||||
mkdir -p /var/log/supervisor
|
mkdir -p /var/log/supervisor
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user