Re: New release Bacularis 4.6.0

Marcin Haba <[email protected]>
Newsgroups gmane.comp.bacula.user
Message-ID <CAOqQBvMhCiMTkO+CZvWyQAFFsauW9X=2oRSqPkRCgObWRExiNg@mail.gmail.com>
On Wed, 22 Jan 2025 at 16:42, Marcin Haba <[email protected]> wrote:
>
> On Wed, 22 Jan 2025 at 15:15, Christophe PEREZ via Bacula-users
> <[email protected]> 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)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.