From b13171cc4549ff894c6336bbd31ac9f32a0271d4 Mon Sep 17 00:00:00 2001 From: Adam Warner Date: Tue, 2 May 2017 22:37:38 +0100 Subject: [PATCH] $1 is not $pw. Seriously, who let me onto this project --- automated install/basic-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index 311adb72..c65ef49f 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -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