fix deluge backup permissions by adding backup user to media group
This commit is contained in:
parent
ece6ae016a
commit
0829792df0
1 changed files with 6 additions and 6 deletions
|
@ -182,16 +182,16 @@ in
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
systemd.services.deluged.serviceConfig.UMask = lib.mkForce "0027";
|
# We want deluge to create files in the media group and to make those files group readable.
|
||||||
systemd.services.deluged.serviceConfig.Group = lib.mkForce "media";
|
|
||||||
users.users.deluge = {
|
users.users.deluge = {
|
||||||
extraGroups = [ "media" ];
|
extraGroups = [ "media" ];
|
||||||
};
|
};
|
||||||
|
systemd.services.deluged.serviceConfig.Group = lib.mkForce "media";
|
||||||
|
systemd.services.deluged.serviceConfig.UMask = lib.mkForce "0027";
|
||||||
|
|
||||||
users.groups.deluge = {
|
# We backup the whole deluge directory and set permissions for the backup user accordingly.
|
||||||
members = [ "backup" ];
|
users.groups.deluge.members = [ "backup" ];
|
||||||
};
|
users.groups.media.members = [ "backup" ];
|
||||||
|
|
||||||
shb.backup.instances.deluge = {
|
shb.backup.instances.deluge = {
|
||||||
sourceDirectories = [
|
sourceDirectories = [
|
||||||
config.services.deluge.dataDir
|
config.services.deluge.dataDir
|
||||||
|
|
Loading…
Reference in a new issue