From 1eeaa012347e5e7ed76eda6e4e4f92402e58b490 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Thu, 15 Dec 2016 15:22:18 +0100 Subject: [PATCH] Always put the information that we added a password if we did (not only on update but also on fresh install) --- automated install/basic-install.sh | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index 23d57cff..d96c7eb4 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -1164,15 +1164,16 @@ main() { echo "::: View the web interface at http://pi.hole/admin or http://${IPV4_ADDRESS%/*}/admin" else echo "::: Update complete!" - if (( ${#pw} > 0 )) ; then - echo ":::" - echo "::: Note: As security measure a password has been installed for your web interface" - echo "::: The currently set password is" - echo "::: ${pw}" - echo ":::" - echo "::: You can always change it using" - echo "::: pihole -a -p new_password" - fi + fi + + if (( ${#pw} > 0 )) ; then + echo ":::" + echo "::: Note: As security measure a password has been installed for your web interface" + echo "::: The currently set password is" + echo "::: ${pw}" + echo ":::" + echo "::: You can always change it using" + echo "::: pihole -a -p new_password" fi echo ":::"