On Wed, 22 Jan 2025 at 16:42, Marcin Haba <ganius...@gmail.com> wrote:
>
> On Wed, 22 Jan 2025 at 15:15, Christophe PEREZ via Bacula-users
> <bacula-users@lists.sourceforge.net> wrote:
> >
> > Sorry, but that doesn't answer my question.
> > I want an automated way.
> > I already check the announcements, but it's not a safe way.
> > To be sure not to miss an update, you need an automated way. Since it
> > doesn't seem to me that bacularis takes care of it (other software does
> > it internally, and sends an email to the admin when there is a new
> > version), I have to set it up myself so that I can get it at any time
> > without waiting for it to come to me. Be careful, an announcement is
> > taking the risk of missing it and therefore not processing it. It's not
> > at all functional.
> > So I ask, where can I find this reliable information, permanently?
> > For now, I do:
> > wget -q -O- https://bacularis.com | grep -o ">New release
> > Bacularis[^<]*" | head -n1 | awk '{print $4}'
> > But this is not ideal, because if the HTML page changes (and it
> > inevitably will), I will have to correct the parsing, whereas if a JSON
> > page returned the version, regardless of the site's changes, we could
> > rely on this page to know the latest version.

Hello Christophe,

OK, I have something much better:

wget -q -O- https://api.github.com/repos/bacularis/bacularis-app/releases/latest
|  jq -r '.tag_name'

This is the GitHub API that returns JSON. In this example above I used
jq command-line JSON parser. It will always show the latest version.

Best regards,
Marcin Haba (gani)


_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to