mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-22 16:55:38 +00:00
gitea litestream permissions fixes
This commit is contained in:
parent
982566a92e
commit
d97e3fda07
@ -60,6 +60,10 @@ in {
|
|||||||
# Open to groups, allowing for backups
|
# Open to groups, allowing for backups
|
||||||
systemd.services.gitea.serviceConfig.StateDirectoryMode =
|
systemd.services.gitea.serviceConfig.StateDirectoryMode =
|
||||||
lib.mkForce "0770";
|
lib.mkForce "0770";
|
||||||
|
systemd.tmpfiles.rules = [
|
||||||
|
"d ${giteaPath}/data 0775 gitea gitea"
|
||||||
|
"f ${giteaPath}/data/gitea.db 0660 gitea gitea"
|
||||||
|
];
|
||||||
|
|
||||||
# Allow litestream and gitea to share a sqlite database
|
# Allow litestream and gitea to share a sqlite database
|
||||||
users.users.litestream.extraGroups = [ "gitea" ];
|
users.users.litestream.extraGroups = [ "gitea" ];
|
||||||
|
Loading…
Reference in New Issue
Block a user