Merge pull request #1001 from pi-hole/cleanup/remove_legacy_detect

Remove v1 legacy detection code.
This commit is contained in:
DL6ER 2016-12-21 13:49:34 +01:00 committed by GitHub
commit f082b5ba54
1 changed files with 0 additions and 12 deletions

View File

@ -621,16 +621,6 @@ version_check_dnsmasq() {
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 an exiting installation to prepare for upgrade/reinstall
# ${1} Directory to clean; ${2} Array of files to remove
@ -1069,8 +1059,6 @@ main() {
welcomeDialogs
# Create directory for Pi-hole storage
mkdir -p /etc/pihole/
# Remove legacy scripts from previous storage location
remove_legacy_scripts
# Stop resolver and webserver while installing proceses
stop_service dnsmasq
stop_service lighttpd