Skip to content

Commit

Permalink
fixes #1178: Firefly III script will fetch only stable releases
Browse files Browse the repository at this point in the history
  • Loading branch information
alberanid committed Jan 2, 2025
1 parent 2245479 commit df2e06d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ct/firefly.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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}"
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}${CL}"

0 comments on commit df2e06d

Please sign in to comment.