From af95e8c2500bc5ac0f6cd78e9ca9ee533f66dc76 Mon Sep 17 00:00:00 2001 From: Adam Warner Date: Wed, 19 Feb 2020 17:41:53 +0000 Subject: [PATCH 1/2] force `updatchecker.sh` run if any of the three components are updated Signed-off-by: Adam Warner --- advanced/Scripts/update.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/advanced/Scripts/update.sh b/advanced/Scripts/update.sh index e45be5cf..1b98eafb 100755 --- a/advanced/Scripts/update.sh +++ b/advanced/Scripts/update.sh @@ -198,6 +198,14 @@ main() { ${PI_HOLE_FILES_DIR}/automated\ install/basic-install.sh --reconfigure --unattended || \ echo -e "${basicError}" && exit 1 fi + + if [[ "${FTL_update}" == true || "${core_update}" == true || "${web_update}" == true ]] + # Force an update of the updatechecker + /opt/pihole/updatecheck.sh + /opt/pihole/updatecheck.sh x remote + echo -e " ${INFO} Local version file information updated." + fi + echo "" exit 0 } From 4a5f344b099cd1a281a9a38a795cb9bc39eb0857 Mon Sep 17 00:00:00 2001 From: Adam Warner Date: Wed, 19 Feb 2020 17:46:45 +0000 Subject: [PATCH 2/2] then Signed-off-by: Adam Warner --- advanced/Scripts/update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/advanced/Scripts/update.sh b/advanced/Scripts/update.sh index 1b98eafb..f833fc2f 100755 --- a/advanced/Scripts/update.sh +++ b/advanced/Scripts/update.sh @@ -199,7 +199,7 @@ main() { echo -e "${basicError}" && exit 1 fi - if [[ "${FTL_update}" == true || "${core_update}" == true || "${web_update}" == true ]] + if [[ "${FTL_update}" == true || "${core_update}" == true || "${web_update}" == true ]]; then # Force an update of the updatechecker /opt/pihole/updatecheck.sh /opt/pihole/updatecheck.sh x remote