From a57b097afc13ab9aed4e770fb936b0f161ea2e66 Mon Sep 17 00:00:00 2001 From: Promofaux Date: Sun, 21 Aug 2016 18:00:41 +0100 Subject: [PATCH] Change echos at the end of install depending on install or update --- automated install/basic-install.sh | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index bc8e2fc9..5dcfbd20 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -969,7 +969,9 @@ fi # Move the log file into /etc/pihole for storage ${SUDO} mv ${tmpLog} ${instalLogLoc} -displayFinalMessage +if [[ ${useUpdateVars} == false ]]; then + displayFinalMessage +fi echo -n "::: Restarting services..." # Start services @@ -986,11 +988,16 @@ fi echo " done." echo ":::" -echo "::: Installation Complete! Configure your devices to use the Pi-hole as their DNS server using:" -echo "::: ${IPv4addr%/*}" -echo "::: $piholeIPv6" -echo ":::" -echo "::: If you set a new IP address, you should restart the Pi." +if [[ ${useUpdateVars} == false ]]; then + echo "::: Installation Complete! Configure your devices to use the Pi-hole as their DNS server using:" + echo "::: ${IPv4addr%/*}" + echo "::: $piholeIPv6" + echo ":::" + echo "::: If you set a new IP address, you should restart the Pi." +else + echo "::: Update complete!" +fi + echo ":::" echo "::: The install log is located at: /etc/pihole/install.log" echo "::: View the web interface at http://pi.hole/admin or http://${IPv4addr%/*}/admin"