Only take out scripts in the directory, don't remove the directory as a whole. Need this for the future installs.

pull/895/head
Dan Schaper 8 years ago
parent 9c83825cb8
commit db0f3307e0

@ -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/

Loading…
Cancel
Save