fix conf-dir directive activation
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 30 May 2009 13:07:12 +0000 (13:07 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 30 May 2009 13:07:12 +0000 (13:07 +0000)
git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@105 191e9f34-6774-4a6d-acfc-7664dacd4a2a

recepies/pxe/2.enable-conf-dir.sh

index 21c1145..4f9008c 100755 (executable)
@@ -1,3 +1,3 @@
 #!/bin/sh -x
 
-grep '^conf-dif=/etc/dnsmasq.d' /etc/dnsmasq.conf || echo 'conf-dir=/etc/dnsmasq.d' >> /etc/dnsmasq && /etc/init.d/dnsmasq restart
+grep '^conf-dif=/etc/dnsmasq.d' /etc/dnsmasq.conf || ( echo 'conf-dir=/etc/dnsmasq.d' >> /etc/dnsmasq.conf && /etc/init.d/dnsmasq restart )