sabnzbd: remove hardcoded uid and gid
This commit is contained in:
@@ -84,7 +84,7 @@ in
|
||||
tor = 35;
|
||||
cups = 36;
|
||||
foldingathome = 37;
|
||||
sabnzbd = 38;
|
||||
#sabnzbd = 38; # dropped in 25.11
|
||||
#kdm = 39; # dropped in 17.03
|
||||
#ghostone = 40; # dropped in 18.03
|
||||
git = 41;
|
||||
@@ -570,7 +570,7 @@ in
|
||||
lambdabot = 191;
|
||||
asterisk = 192;
|
||||
plex = 193;
|
||||
sabnzbd = 194;
|
||||
#sabnzbd = 194; # dropped in 25.11
|
||||
#grafana = 196; #unused
|
||||
#skydns = 197; #unused
|
||||
# ripple-rest = 198; # unused, removed 2017-08-12
|
||||
|
||||
@@ -57,14 +57,14 @@ in
|
||||
config = mkIf cfg.enable {
|
||||
users.users = mkIf (cfg.user == "sabnzbd") {
|
||||
sabnzbd = {
|
||||
uid = config.ids.uids.sabnzbd;
|
||||
isSystemUser = true;
|
||||
group = cfg.group;
|
||||
description = "sabnzbd user";
|
||||
};
|
||||
};
|
||||
|
||||
users.groups = mkIf (cfg.group == "sabnzbd") {
|
||||
sabnzbd.gid = config.ids.gids.sabnzbd;
|
||||
sabnzbd = { };
|
||||
};
|
||||
|
||||
systemd.services.sabnzbd = {
|
||||
|
||||
Reference in New Issue
Block a user