$1 is not $pw. Seriously, who let me onto this project

pull/1423/head
Adam Warner 7 years ago
parent 9c645e2010
commit b13171cc45
No known key found for this signature in database
GPG Key ID: 7C062498C7FA6E49

@ -1414,7 +1414,7 @@ main() {
if [[ $(grep 'WEBPASSWORD' -c /etc/pihole/setupVars.conf) == 0 ]] ; then
pw=$(tr -dc _A-Z-a-z-0-9 < /dev/urandom | head -c 8)
. /opt/pihole/webpage.sh
echo "WEBPASSWORD=$(HashPassword ${1})" >> ${setupVars}
echo "WEBPASSWORD=$(HashPassword ${pw})" >> ${setupVars}
fi
fi

Loading…
Cancel
Save