mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 10:43:55 +00:00
Do not force apt-get upgrade on the user. Instead, advise them. We only need to make sure apt-get update has been run
This commit is contained in:
parent
3d78b44a8e
commit
c00fb44cee
1 changed files with 2 additions and 15 deletions
|
@ -331,21 +331,8 @@ checkForDependencies(){
|
||||||
echo "::: Your pi is up to date! Continuing with pi-hole installation..."
|
echo "::: Your pi is up to date! Continuing with pi-hole installation..."
|
||||||
else
|
else
|
||||||
echo "::: There are $updatesToInstall updates availible for your pi!"
|
echo "::: There are $updatesToInstall updates availible for your pi!"
|
||||||
echo "::: Please run 'sudo apt-get upgrade' before continuing with installation"
|
echo "::: We recommend you run 'sudo apt-get upgrade' after installing Pi-Hole! "
|
||||||
echo ":::"
|
echo ":::"
|
||||||
echo "::: Quitting install, please run 'curl -L install.pi-hole.net | bash' after updating packages!"
|
|
||||||
echo ":::"
|
|
||||||
|
|
||||||
exit 1
|
|
||||||
#add in a prompt to give users the option to quit installation or continue
|
|
||||||
#echo -n "::: Would you like to continue with the pi-hole installation? (Y/n):"
|
|
||||||
#read answer
|
|
||||||
|
|
||||||
#case "$answer" in
|
|
||||||
# [yY][eE][sS]|[yY] ) echo "::: Continuing!";;
|
|
||||||
# * ) echo "::: Quitting install, please run 'curl -L install.pi-hole.net | bash' after updating packages!"
|
|
||||||
|
|
||||||
#esac
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo ":::"
|
echo ":::"
|
||||||
|
|
Loading…
Reference in a new issue