drist-etc_hosts

drist script to update local and remote /etc/hosts
git clone git://git.pyratebeard.net/drist-etc_hosts.git
Log | Files | Refs

makefile (418B)


      1 LOCALSERVER := laundry
      2 REMOTESERVER := nublar
      3 FILESDIR = files
      4 
      5 .PHONY: dnsmasq
      6 
      7 dnsmasq:
      8 	if [ ! -d ${FILESDIR} ] ; then mkdir ${FILESDIR} ; fi
      9 	/usr/bin/pass systems/etc_hosts/default > ${FILESDIR}/default.hosts
     10 	/usr/bin/pass systems/etc_hosts/local > ${FILESDIR}/local.hosts
     11 	/usr/bin/pass systems/etc_hosts/remote > ${FILESDIR}/remote.hosts
     12 	drist ${REMOTESERVER}
     13 	drist ${LOCALSERVER}
     14 	rm -f ${FILESDIR}/*.hosts