3.0.1 progress

This commit is contained in:
diginc
2017-05-09 15:03:03 -05:00
parent 9f61b87198
commit 8d0ea48ecd
7 changed files with 16 additions and 11 deletions

View File

@@ -135,7 +135,11 @@ setup_web_password() {
echo "Assigning random password: $WEBPASSWORD"
fi;
set -x
pihole -a -p "$WEBPASSWORD"
if [[ "$WEBPASSWORD" == "" ]] ; then
echo "" | pihole -a -p
else
pihole -a -p "$WEBPASSWORD" "$WEBPASSWORD"
fi
{ set +x; } 2>/dev/null
}
setup_ipv4_ipv6() {