mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-01-23 21:09:48 +00:00
Merge pull request #1001 from pi-hole/cleanup/remove_legacy_detect
Remove v1 legacy detection code.
This commit is contained in:
commit
f082b5ba54
1 changed files with 0 additions and 12 deletions
|
@ -621,16 +621,6 @@ version_check_dnsmasq() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
remove_legacy_scripts() {
|
|
||||||
#Tidy up /usr/local/bin directory if installing over previous install.
|
|
||||||
oldFiles=( gravity chronometer whitelist blacklist piholeLogFlush updateDashboard uninstall setupLCD piholeDebug)
|
|
||||||
for i in "${oldFiles[@]}"; do
|
|
||||||
if [ -f "/usr/local/bin/$i.sh" ]; then
|
|
||||||
rm /usr/local/bin/"$i".sh
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
clean_existing() {
|
clean_existing() {
|
||||||
# Clean an exiting installation to prepare for upgrade/reinstall
|
# Clean an exiting installation to prepare for upgrade/reinstall
|
||||||
# ${1} Directory to clean; ${2} Array of files to remove
|
# ${1} Directory to clean; ${2} Array of files to remove
|
||||||
|
@ -1069,8 +1059,6 @@ main() {
|
||||||
welcomeDialogs
|
welcomeDialogs
|
||||||
# Create directory for Pi-hole storage
|
# Create directory for Pi-hole storage
|
||||||
mkdir -p /etc/pihole/
|
mkdir -p /etc/pihole/
|
||||||
# Remove legacy scripts from previous storage location
|
|
||||||
remove_legacy_scripts
|
|
||||||
# Stop resolver and webserver while installing proceses
|
# Stop resolver and webserver while installing proceses
|
||||||
stop_service dnsmasq
|
stop_service dnsmasq
|
||||||
stop_service lighttpd
|
stop_service lighttpd
|
||||||
|
|
Loading…
Add table
Reference in a new issue