1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-12-22 06:48:07 +00:00

If config file was backed up: Print info message

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER 2018-08-21 13:07:23 +02:00
parent 28c6b1393f
commit 1813c25117
No known key found for this signature in database
GPG Key ID: 00135ACBD90B28DD

View File

@ -2113,6 +2113,7 @@ FTLinstall() {
# /etc/dnsmasq.conf contains only "conf-dir=/etc/dnsmasq.d"
local conffile="/etc/dnsmasq.conf"
if [[ -f "${conffile}" ]]; then
echo " ${INFO} Backing up ${conffile} to ${conffile}.old"
mv "${conffile}" "${conffile}.old"
fi
# Create /etc/dnsmasq.conf