mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-24 15:13:42 +00:00
Change exit to exit 1
This commit is contained in:
parent
cc0997f110
commit
dbf1308c67
1 changed files with 5 additions and 1 deletions
|
@ -330,10 +330,13 @@ checkForDependencies(){
|
||||||
if [[ $updatesToInstall -eq "0" ]]; then
|
if [[ $updatesToInstall -eq "0" ]]; then
|
||||||
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
|
||||||
|
abort=true
|
||||||
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 "::: Please run 'sudo apt-get upgrade' before continuing with installation"
|
||||||
echo ":::"
|
echo ":::"
|
||||||
echo "::: Quitting install, please run 'curl -L install.pi-hole.net | bash' after updating packages!"
|
echo "::: Quitting install, please run 'curl -L install.pi-hole.net | bash' after updating packages!"
|
||||||
|
echo ":::"
|
||||||
|
|
||||||
exit
|
exit
|
||||||
#add in a prompt to give users the option to quit installation or continue
|
#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):"
|
#echo -n "::: Would you like to continue with the pi-hole installation? (Y/n):"
|
||||||
|
@ -515,6 +518,7 @@ installPihole | tee $tmpLog
|
||||||
$SUDO mv $tmpLog $instalLogLoc
|
$SUDO mv $tmpLog $instalLogLoc
|
||||||
|
|
||||||
displayFinalMessage
|
displayFinalMessage
|
||||||
|
|
||||||
$SUDO service dnsmasq start
|
$SUDO service dnsmasq start
|
||||||
$SUDO service lighttpd start
|
$SUDO service lighttpd start
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue