From 3ef34bce2a910f6aa92c54ff7e22ce6979f3916c Mon Sep 17 00:00:00 2001 From: Penny Leach Date: Thu, 3 Mar 2011 13:12:57 +0100 Subject: [PATCH] moved location of dnsmasq entry --- profile/base/post-host | 2 +- profile/base/remove-host | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 -- 2.39.5