From 6b7b0e0eb3d8cca341f2ea48f5c84a46257403e5 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Fri, 23 Dec 2016 16:00:48 +0100 Subject: [PATCH] Test if /etc/pihole/adlists.default exists --- automated install/basic-install.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index 48e98f14..0f7f0e7c 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -829,6 +829,10 @@ runGravity() { echo "::: Cleaning up previous install (preserving whitelist/blacklist)" rm /etc/pihole/list.* fi + # Test if /etc/pihole/adlists.default exists + if [[ ! -e /etc/pihole/adlists.default ]]; then + cp /etc/.pihole/adlists.default /etc/pihole/adlists.default + fi echo "::: Running gravity.sh" { /opt/pihole/gravity.sh; } }