From 2cdb873f1414065aa8a3b52b726f9bb5649db8a0 Mon Sep 17 00:00:00 2001 From: Mike Tedesco Date: Sun, 10 Jan 2016 16:51:42 -0500 Subject: [PATCH] A better back up for /etc/dnsmasq.d/ --- automated install/basic-install.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index fc805313..b88755cd 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -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