From db0f3307e07a5b4d40b2b7a032556eb3efeef580 Mon Sep 17 00:00:00 2001 From: Dan Schaper Date: Tue, 1 Nov 2016 22:48:30 -0700 Subject: [PATCH] Only take out scripts in the directory, don't remove the directory as a whole. Need this for the future installs. --- automated install/basic-install.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index 921b0ffa..a9a5d47d 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -593,8 +593,7 @@ installScripts() { 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 + rm -f /opt/pihole/*.sh cd /etc/.pihole/