A better back up for /etc/dnsmasq.d/

This commit is contained in:
Mike Tedesco 2016-01-10 16:51:42 -05:00
parent e6a7cb8775
commit 2cdb873f14

View file

@ -47,6 +47,9 @@ if [[ -d /etc/pihole ]];then
sudo mv /etc/lighttpd/lighttpd.conf /etc/pihole/original/lighttpd.conf.$(date "+%Y-%m-%d")
sudo mv /var/www/pihole/index.html /etc/pihole/original/index.html.$(date "+%Y-%m-%d")
sudo mv /usr/local/bin/gravity.sh /etc/pihole/original/gravity.sh.$(date "+%Y-%m-%d")
for confs in `ls /etc/dnsmasq.d/`; do
sudo mv /etc/dnsmasq.d/$conf /etc/pihole/original/$conf.$(date "+%Y-%m-%d")
done
else
:
fi