From bcc3a7e35e9369f32b60a9c8abcf7187169a5880 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=B6nig?= Date: Mon, 30 Sep 2024 21:04:55 +0200 Subject: [PATCH] Show version information after an web only update MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Christian König --- advanced/Scripts/update.sh | 6 ++++++ automated install/basic-install.sh | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/advanced/Scripts/update.sh b/advanced/Scripts/update.sh index 8a35ef2e..2ccad27c 100755 --- a/advanced/Scripts/update.sh +++ b/advanced/Scripts/update.sh @@ -221,6 +221,12 @@ main() { echo -e " ${INFO} Local version file information updated." fi + # if there was only a web update, show the new versions + # (on core and FTL updates, this is done as part of the installer run) + if [[ "${web_update}" == true && "${FTL_update}" == false && "${core_update}" == false ]]; then + "${PI_HOLE_BIN_DIR}"/pihole version + fi + echo "" exit 0 } diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index 9428b05a..b948b8a5 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -2434,7 +2434,7 @@ main() { if [[ "${INSTALL_TYPE}" == "Update" ]]; then printf "\\n" - "${PI_HOLE_BIN_DIR}"/pihole version --current + "${PI_HOLE_BIN_DIR}"/pihole version fi }