mirror of
https://github.com/Kozea/Radicale.git
synced 2025-04-04 21:57:43 +03:00
Update DOCUMENTATION.md
Explain possible pitfall when using git with systemd
This commit is contained in:
parent
d7ce2f0b98
commit
02c949d5d3
1 changed files with 10 additions and 0 deletions
|
@ -528,6 +528,16 @@ git add -A && (git diff --cached --quiet || git commit -m "Changes by "%(user)s)
|
||||||
The command gets executed after every change to the storage and commits
|
The command gets executed after every change to the storage and commits
|
||||||
the changes into the **git** repository.
|
the changes into the **git** repository.
|
||||||
|
|
||||||
|
For the hook to not cause errors either **git** user details need to be set and match the owner of the collections directory or the repository needs to be marked as safe.
|
||||||
|
|
||||||
|
When using the systemd unit file from the [Running as a service](#running-as-a-service) section this **cannot** be done via a `.gitconfig` file in the users home directory, as Radicale won't have read permissions!
|
||||||
|
|
||||||
|
In `/var/lib/radicale/collections` run:
|
||||||
|
```bash
|
||||||
|
git config user.name "radicale"
|
||||||
|
git config user.email "radicale@example.com"
|
||||||
|
```
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
### Configuration
|
### Configuration
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue