mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
CLOUDSTACK-2044: Use dnsmasq.conf.tmpl to generate dnsmasq.conf
We add something like dhcp-range_ip4/ip6 in the template for implementing different setups.
This commit is contained in:
parent
f8504c0960
commit
2510bf03f6
@ -442,6 +442,9 @@ setup_dnsmasq() {
|
||||
[ -z $DHCP_RANGE ] && [ $ETH0_IP ] && DHCP_RANGE=$ETH0_IP
|
||||
[ $ETH0_IP6 ] && DHCP_RANGE_IP6=$ETH0_IP6
|
||||
[ -z $DOMAIN ] && DOMAIN="cloudnine.internal"
|
||||
|
||||
#get the template
|
||||
cp /etc/dnsmasq.conf.tmpl /etc/dnsmasq.conf
|
||||
|
||||
if [ -n "$DOMAIN" ]
|
||||
then
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user