mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-24 23:23:42 +00:00
Merge branch 'development' into networkchoices
This commit is contained in:
commit
334eb4cd76
2 changed files with 18 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Automated Install
|
# Automated Install
|
||||||
##### Designed For Raspberry Pi A+, B, B+, 2, and Zero (with an Ethernet adapter)
|
##### Designed For Raspberry Pi A+, B, B+, 2, Zero (with an Ethernet adapter), and also works on most Debian based distros!
|
||||||
|
|
||||||
1. Install Raspbian
|
1. Install Raspbian on Raspberry Pi variants or a Debian based distribution on other hardware or virtual machines
|
||||||
2. Run the command below
|
2. Run the command below
|
||||||
|
|
||||||
### ```curl -L install.pi-hole.net | bash```
|
### ```curl -L install.pi-hole.net | bash```
|
||||||
|
|
|
@ -691,6 +691,19 @@ setUser(){
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setPassword() {
|
||||||
|
# Password needed to authorize changes to lists from admin page
|
||||||
|
pass=$(whiptail --passwordbox "Please enter a password to secure your Pi-hole web interface." 10 50 3>&1 1>&2 2>&3)
|
||||||
|
|
||||||
|
if [ $? = 0 ]; then
|
||||||
|
# Entered password
|
||||||
|
echo $pass > /etc/pihole/password.txt
|
||||||
|
else
|
||||||
|
echo "::: Cancel selected, exiting...."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
installPihole() {
|
installPihole() {
|
||||||
# Install base files and web interface
|
# Install base files and web interface
|
||||||
checkForDependencies # done
|
checkForDependencies # done
|
||||||
|
@ -741,6 +754,9 @@ use4andor6
|
||||||
# Decide what upstream DNS Servers to use
|
# Decide what upstream DNS Servers to use
|
||||||
setDNS
|
setDNS
|
||||||
|
|
||||||
|
# Set the admin page password
|
||||||
|
setPassword
|
||||||
|
|
||||||
# Install and log everything to a file
|
# Install and log everything to a file
|
||||||
installPihole | tee $tmpLog
|
installPihole | tee $tmpLog
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue