diff --git a/monitoring/check_tootsuite_mastodon_release.sh b/monitoring/check_tootsuite_mastodon_release.sh index 20e937b..ce8fea0 100755 --- a/monitoring/check_tootsuite_mastodon_release.sh +++ b/monitoring/check_tootsuite_mastodon_release.sh @@ -9,7 +9,7 @@ # 2 : WARNING new version available # 3 : UNKNOWN github or local repo not probable -LAST_VERSION=$(curl --silent https://api.github.com/repos/tootsuite/mastodon/releases | jq -r '.[0].name') +LAST_VERSION=$(curl -L --silent https://api.github.com/repos/tootsuite/mastodon/releases | jq -r '.[0].name') INSTALLED_VERSION=$(git -C /home/mastodon/live/ branch | grep ^* | sed -e 's/.*live-//')