]> git.mjollnir.org Git - vserverctl.git/commitdiff
moved location of dnsmasq entry
authorPenny Leach <penny@mjollnir.org>
Thu, 3 Mar 2011 12:12:57 +0000 (13:12 +0100)
committerPenny Leach <penny@mjollnir.org>
Thu, 3 Mar 2011 12:13:34 +0000 (13:13 +0100)
profile/base/post-host
profile/base/remove-host

index 0aa55f2e661fdb88f7e607cd51578042d87cd6e2..0865693cfff0a871e6e4a388907530e3dcf640a3 100644 (file)
@@ -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
index 392665e9d5ffb2a0f84a8fe836d5d1b27e66d2b9..c943b9b522613ed7081ff56531be20b856392bf2 100644 (file)
@@ -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