mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-04-17 21:00:12 +00:00
$1 is not $pw. Seriously, who let me onto this project
This commit is contained in:
parent
9c645e2010
commit
b13171cc45
1 changed files with 1 additions and 1 deletions
|
@ -1414,7 +1414,7 @@ main() {
|
||||||
if [[ $(grep 'WEBPASSWORD' -c /etc/pihole/setupVars.conf) == 0 ]] ; then
|
if [[ $(grep 'WEBPASSWORD' -c /etc/pihole/setupVars.conf) == 0 ]] ; then
|
||||||
pw=$(tr -dc _A-Z-a-z-0-9 < /dev/urandom | head -c 8)
|
pw=$(tr -dc _A-Z-a-z-0-9 < /dev/urandom | head -c 8)
|
||||||
. /opt/pihole/webpage.sh
|
. /opt/pihole/webpage.sh
|
||||||
echo "WEBPASSWORD=$(HashPassword ${1})" >> ${setupVars}
|
echo "WEBPASSWORD=$(HashPassword ${pw})" >> ${setupVars}
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue