mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-24 07:03:43 +00:00
A better back up for /etc/dnsmasq.d/
This commit is contained in:
parent
e6a7cb8775
commit
2cdb873f14
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue