diff --git a/ct/firefly.sh b/ct/firefly.sh index 542f84ec39..ee09e3bdb4 100644 --- a/ct/firefly.sh +++ b/ct/firefly.sh @@ -34,7 +34,7 @@ check_container_resources msg_error "No ${APP} Installation Found!" exit fi - RELEASE=$(curl -s https://api.github.com/repos/firefly-iii/firefly-iii/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4)}') + RELEASE=$(curl -L -s -H "Accept: application/vnd.github+json" https://api.github.com/repos/firefly-iii/firefly-iii/releases?per_page=100 | grep "tag_name" | awk '{print substr($2, 2, length($2)-3)}' | grep "^v" | grep -v '\-\(alpha\|beta\)' | sed 's/^v//' | head -1) if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then msg_info "Stopping Apache2" systemctl stop apache2 @@ -82,4 +82,4 @@ description msg_ok "Completed Successfully!\n" echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" echo -e "${INFO}${YW} Access it using the following URL:${CL}" -echo -e "${TAB}${GATEWAY}${BGN}http://${IP}${CL}" \ No newline at end of file +echo -e "${TAB}${GATEWAY}${BGN}http://${IP}${CL}"