mirror of
https://github.com/pi-hole/pi-hole
synced 2025-01-10 16:10:56 +00:00
clear out /opt/pihole folder before installing scripts
This commit is contained in:
parent
0d6a6b97f9
commit
55a653aca4
@ -553,6 +553,8 @@ installScripts() {
|
|||||||
# Install the scripts from /etc/.pihole to their various locations
|
# Install the scripts from /etc/.pihole to their various locations
|
||||||
echo ":::"
|
echo ":::"
|
||||||
echo -n "::: Installing scripts to /opt/pihole..."
|
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
|
install -o "${USER}" -m755 -d /opt/pihole
|
||||||
|
|
||||||
cd /etc/.pihole/
|
cd /etc/.pihole/
|
||||||
|
Loading…
Reference in New Issue
Block a user