Radicale icon indicating copy to clipboard operation
Radicale copied to clipboard

Add first login hook

Open itglob opened this issue 3 years ago • 1 comments

Add ability to hook first user login to propagate default address book and calendar, in simple scenario coping two folders from template.

Variant 1:

Add hook= to Auth section
[auth] 
# args send to init-usr.sh $1 – collection-root $2 - username
hook = /full-path/init-usr.sh

Variant 2:

Reorganize hooks, add hooks section and rename old hook to storage_change
[hooks]
storage_change= “as old hook”
# args send to init-usr.sh $1 – collection-root $2 - username
first_login = /full-path/init-usr.sh

I think second variant better because of clearer names. If it’s ok as concept, I can implement it.

itglob avatar Feb 21 '22 14:02 itglob

Please provide a PR for that, potentially on top of https://github.com/Kozea/Radicale/pull/1092

pbiering avatar Mar 02 '24 16:03 pbiering

This was meanwhile implemented, see option predefined_collections

  • https://github.com/Kozea/Radicale/releases/tag/v3.2.2

pbiering avatar Dec 16 '24 20:12 pbiering