mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
CLOUDSTACK-5986: Fix dnsmasq lease for VPC
This commit is contained in:
parent
467986321a
commit
8937434fce
@ -1042,6 +1042,16 @@ EOF
|
||||
sed -r -i s/^[#]?domain=.*$/domain=$DOMAIN/ /etc/dnsmasq.conf
|
||||
#answer all local domain queries
|
||||
sed -i -e "s/^[#]*local=.*$/local=\/$DOMAIN\//" /etc/dnsmasq.conf
|
||||
|
||||
command -v dhcp_release > /dev/null 2>&1
|
||||
no_dhcp_release=$?
|
||||
if [ $no_dhcp_release -eq 0 ]
|
||||
then
|
||||
echo 1 > /var/cache/cloud/dnsmasq_managed_lease
|
||||
sed -i -e "/^leasefile-ro/d" /etc/dnsmasq.conf
|
||||
else
|
||||
echo 0 > /var/cache/cloud/dnsmasq_managed_lease
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user