Adjusted curl timeout.

This commit is contained in:
Storm Dragon 2021-06-30 23:04:53 -04:00
parent a5bb8bc021
commit 1ba82cb96e

View File

@ -52,7 +52,7 @@ check_news() {
# url for news file # url for news file
local newsFile="https://stormgames.wolfe.casa/media/agm.ogg" local newsFile="https://stormgames.wolfe.casa/media/agm.ogg"
local newsPath="${configFile%/*.conf}/.news" local newsPath="${configFile%/*.conf}/.news"
local newsTag="$(curl --connect-timeout 3 -sI "$newsFile" | grep 'etag: "' | cut -d '"' -f2)" local newsTag="$(curl --connect-timeout 15 -sI "$newsFile" | grep 'etag: "' | cut -d '"' -f2)"
local newsOldTag="$(cat "$newsPath" 2> /dev/null)" local newsOldTag="$(cat "$newsPath" 2> /dev/null)"
if [[ "$newsTag" != "$newsOldTag" ]]; then if [[ "$newsTag" != "$newsOldTag" ]]; then
dialog --yes-label 'Play' \ dialog --yes-label 'Play' \