storage hook extend doc

This commit is contained in:
Peter Bieringer 2025-03-27 08:32:23 +01:00
parent 3eb61a82a6
commit 3bdc438283
2 changed files with 8 additions and 3 deletions

View file

@ -1334,7 +1334,9 @@ Command that is run after changes to storage. Take a look at the
Default:
Supported placeholders:
- `%(user)`: logged-in user
- `%(user)s`: logged-in user
- `%(cwd)s`: current working directory _(>= 3.5.1)_
- `%(path)s`: full path of item _(>= 3.5.1)_
Command will be executed with base directory defined in `filesystem_folder` (see above)

7
config
View file

@ -223,10 +223,13 @@
# Command that is run after changes to storage, default is emtpy
# Supported placeholders:
# %(user): logged-in user
# %(user)s: logged-in user
# %(cwd)s : current working directory
# %(path)s: full path of item
# Command will be executed with base directory defined in filesystem_folder
# For "git" check DOCUMENTATION.md for bootstrap instructions
# Example: git add -A && (git diff --cached --quiet || git commit -m "Changes by \"%(user)s\"")
# Example(test): echo \"user=%(user)s path=%(path)s cwd=%(cwd)s\"
# Example(git): git add -A && (git diff --cached --quiet || git commit -m "Changes by \"%(user)s\"")
#hook =
# Create predefined user collections