mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +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..."
|
||||
else
|
||||
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 "::: 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
|
||||
|
||||
echo ":::"
|
||||
|
@ -518,4 +505,4 @@ $SUDO mv $tmpLog $instalLogLoc
|
|||
|
||||
displayFinalMessage
|
||||
$SUDO service dnsmasq start
|
||||
$SUDO service lighttpd start
|
||||
$SUDO service lighttpd start
|
Loading…
Reference in a new issue