mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-23 21:30:17 +00:00
Fixed password input
This commit is contained in:
parent
af83936047
commit
adcd7f10ee
1 changed files with 2 additions and 2 deletions
|
@ -660,11 +660,11 @@ setUser(){
|
|||
|
||||
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)
|
||||
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
|
||||
echo $pass > /etc/pihole/password.txt
|
||||
else
|
||||
echo "::: Cancel selected, exiting...."
|
||||
exit 1
|
||||
|
|
Loading…
Reference in a new issue