From 8560f928cdd58dc692870039734d456bc7e19c43 Mon Sep 17 00:00:00 2001
From: Bob Mottram <bob@robotics.uk.to>
Date: Mon, 31 Oct 2016 23:12:55 +0000
Subject: [PATCH] Extra directory

---
 src/freedombone-app-pihole | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/freedombone-app-pihole b/src/freedombone-app-pihole
index 5bfb2b7bf..a803c8639 100755
--- a/src/freedombone-app-pihole
+++ b/src/freedombone-app-pihole
@@ -54,6 +54,10 @@ pihole_variables=(ONION_ONLY
                   PIHOLE_DNS2)
 
 function pihole_copy_files {
+    if [ ! -d /etc/.pihole ]; then
+        mkdir /etc/.pihole
+    fi
+    cp $INSTALL_DIR/pihole/adlists.default /etc/.pihole/adlists.default
     cp $INSTALL_DIR/pihole/adlists.default $piholeDir/adlists.default
     cp $piholeDir/adlists.default $piholeDir/adlists.list
     #cp $INSTALL_DIR/pihole/adlists.default $PIHOLE_ADLIST
@@ -337,6 +341,10 @@ function remove_pihole {
         rm -rf $piholeDir
     fi
 
+    if [ -d /etc/.pihole ]; then
+        rm -rf /etc/.pihole
+    fi
+
     if [ -f /var/log/pihole.log ]; then
         rm /var/log/pihole.log
     fi
-- 
GitLab