From: Penny Leach Date: Thu, 3 Mar 2011 12:12:57 +0000 (+0100) Subject: moved location of dnsmasq entry X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=3ef34bce2a910f6aa92c54ff7e22ce6979f3916c;p=vserverctl.git moved location of dnsmasq entry --- diff --git a/profile/base/post-host b/profile/base/post-host index 0aa55f2..0865693 100644 --- a/profile/base/post-host +++ b/profile/base/post-host @@ -1,5 +1,5 @@ # Add a wildcard dns entry on the HostOS -echo "address=/${VSNAME}.$(hostname)/${VSIPADDR}" >> /etc/dnsmasq-vservers.conf +echo "address=/${VSNAME}.$(hostname)/${VSIPADDR}" >> /etc/dnsmasq.d/vservers.conf /etc/init.d/dnsmasq restart # Copy the user's password from the host diff --git a/profile/base/remove-host b/profile/base/remove-host index 392665e..c943b9b 100644 --- a/profile/base/remove-host +++ b/profile/base/remove-host @@ -1,6 +1,6 @@ # Remove dns entry on the host OS -grep -v "${VSIPADDR}" /etc/dnsmasq-vservers.conf > /etc/dnsmasq-vservers.conf.new -mv /etc/dnsmasq-vservers.conf.new /etc/dnsmasq-vservers.conf +grep -v "${VSIPADDR}" /etc/dnsmasq.d/vservers.conf > /etc/dnsmasq.d/vservers.conf.new +mv /etc/dnsmasq.d/vservers.conf.new /etc/dnsmasq.d/vservers.conf # this isn't set because we don't pass options to remove # USR=$PROFILEOPTION_username