content: creating a deploy user

This commit is contained in:
Thomas Bishop 2025-11-05 19:31:37 +00:00
parent af0af59c28
commit f24f9f1fc7

View file

@ -57,3 +57,22 @@ deployment functions on the server from any client.
Next need to add deploy user's key to Forgejo eolas-api repo and test the action
again
## Rewrite later:
This:
```
sudo chown -R deploy:deploy /data/sqlite/eolas
sudo chmod -R 770 /data/sqlite/eolas
```
Doesn't require the user to be specified in the chmod because the preceding
chown makes him the owner.
This invites a problem though - what if you need multiple owners each with
certain permissions. This is when you would use a group.
In this scenario, the data will only need to be accessed by `deploy` so it is
sufficient to make him the sole owner.