From 55a653aca422b0c3614c8bce21ce12cc4e7b5c64 Mon Sep 17 00:00:00 2001 From: Adam Warner Date: Wed, 26 Oct 2016 10:00:00 +0100 Subject: [PATCH] clear out /opt/pihole folder before installing scripts --- automated install/basic-install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index dfed93a1..c2396bf5 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -553,6 +553,8 @@ installScripts() { # Install the scripts from /etc/.pihole to their various locations echo ":::" echo -n "::: Installing scripts to /opt/pihole..." + #clear out /opt/pihole and recreate it. This allows us to remove scripts from future installs + rm -rf /opt/pihole install -o "${USER}" -m755 -d /opt/pihole cd /etc/.pihole/