Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/pi-hole/pi-hole.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Warner <me@adamwarner.co.uk>2020-02-19 20:41:53 +0300
committerAdam Warner <me@adamwarner.co.uk>2020-02-19 20:41:53 +0300
commitaf95e8c2500bc5ac0f6cd78e9ca9ee533f66dc76 (patch)
treee47e355a2e911be01d196932251eecafe01a2be1 /advanced
parentee7090b8fcb11f090741b33eb68822bcc96135e6 (diff)
force `updatchecker.sh` run if any of the three components are updated
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
Diffstat (limited to 'advanced')
-rwxr-xr-xadvanced/Scripts/update.sh8
1 files changed, 8 insertions, 0 deletions
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
}