diff --git a/advanced/Scripts/updatecheck.sh b/advanced/Scripts/updatecheck.sh index f8ce59dd..04f210a2 100755 --- a/advanced/Scripts/updatecheck.sh +++ b/advanced/Scripts/updatecheck.sh @@ -39,6 +39,10 @@ git describe --long --dirty --tags || return 1 if [[ "$2" == "remote" ]]; then + if [[ "$3" == "reboot" ]]; then + sleep 30 + fi + GITHUB_CORE_VERSION="$(json_extract tag_name "$(curl -q 'https://api.github.com/repos/pi-hole/pi-hole/releases/latest' 2> /dev/null)")" GITHUB_WEB_VERSION="$(json_extract tag_name "$(curl -q 'https://api.github.com/repos/pi-hole/AdminLTE/releases/latest' 2> /dev/null)")" GITHUB_FTL_VERSION="$(json_extract tag_name "$(curl -q 'https://api.github.com/repos/pi-hole/FTL/releases/latest' 2> /dev/null)")" diff --git a/advanced/pihole.cron b/advanced/pihole.cron index 50a9a914..64837197 100644 --- a/advanced/pihole.cron +++ b/advanced/pihole.cron @@ -34,4 +34,4 @@ # Pi-hole: Grab remote version every 24 hours 59 17 * * * root PATH="$PATH:/usr/local/bin/" pihole updatechecker remote -@reboot root PATH="$PATH:/usr/local/bin/" pihole updatechecker remote +@reboot root PATH="$PATH:/usr/local/bin/" pihole updatechecker remote reboot