[-- Attachment #1: Type: text/plain, Size: 442 bytes --] Hello, I have a running Galene instance that reads its groups from galene/groups/* When I copy galene/groups/foo.json (public) to galene/groups/bar.json (public), I would expect bar.json to show up in public-groups.json, however this only seem to occur after restarting the Galene instance. I think I read a while back that groups are automatically updated, as files change? I'm not sure what I'm doing wrong here. Any idea? Cheers, Jeroen [-- Attachment #2: Type: text/html, Size: 607 bytes --]
> I think I read a while back that groups are automatically updated, as > files change? The group will be updated the first time the file is needed. To make the group appear in public groups, just access the /group/whatever page (you don't need to actually login, just accessing the page is enough). If you prefer the command line, just do curl -kI https://galene.example.org:8443/group/whatever or wget --no-check-certificate -O /dev/null https://localhost:8443/group/whatever Shall I make Galene re-check the public groups periodically? Say, every 20 minutes or so? -- Juliusz
> Shall I make Galene re-check the public groups periodically? Say, every
> 20 minutes or so?
commit 06f2ecec16e96e95105d8b3230741373ceffbaaf (HEAD -> master, origin/master)
Author: Juliusz Chroboczek <jch@irif.fr>
Date: Sun Aug 22 16:36:18 2021 +0200
Update the list of public groups when expiring.
Thanks to Jeroen van Veen for suggesting the feature.
Hey Juliusz,
Thanks for explaining. Making a http request to the group is fine.
In that case I would trigger a http request to the groups endpoint after
a group has been added. Would that work the same way for deleted groups
and modified groups? Also, would that work the same way with data/passwd?
The credentials in data/passwd may be useful for the administrator account.
-- Jeroen
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
Op zondag 22 augustus 2021 om 4:00 PM schreef Juliusz Chroboczek <jch@irif.fr>:
> > I think I read a while back that groups are automatically updated, as
>
> > files change?
>
> The group will be updated the first time the file is needed. To make the
>
> group appear in public groups, just access the /group/whatever page (you
>
> don't need to actually login, just accessing the page is enough).
>
> If you prefer the command line, just do
>
> curl -kI https://galene.example.org:8443/group/whatever
>
> or
>
> wget --no-check-certificate -O /dev/null https://localhost:8443/group/whatever
>
> Shall I make Galene re-check the public groups periodically? Say, every
>
> 20 minutes or so?
>
> -- Juliusz
>
> Galene mailing list -- galene@lists.galene.org
>
> To unsubscribe send an email to galene-leave@lists.galene.org
> In that case I would trigger a http request to the groups endpoint after > a group has been added. Would that work the same way for deleted groups > and modified groups? Yes. > Also, would that work the same way with data/passwd? No, data/passwd is not cached, the on-disk file is checked on every attempt. -- Juliusz
Ok, then I know how to proceed. Thanks!
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
Op maandag 23 augustus 2021 om 11:03 AM schreef Juliusz Chroboczek <jch@irif.fr>:
> > In that case I would trigger a http request to the groups endpoint after
>
> > a group has been added. Would that work the same way for deleted groups
> >
> > and modified groups?
>
> Yes.
>
> > Also, would that work the same way with data/passwd?
>
> No, data/passwd is not cached, the on-disk file is checked on every
>
> attempt.
>
> -- Juliusz