nixos/teamspeak3: replace deprecated usage of PermissionsStartOnly
see https://github.com/NixOS/nixpkgs/issues/53852
This commit is contained in:
parent
0b7305e783
commit
dd9598cf54
|
@ -111,16 +111,15 @@ in
|
||||||
gid = config.ids.gids.teamspeak;
|
gid = config.ids.gids.teamspeak;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.tmpfiles.rules = [
|
||||||
|
"d '${cfg.logPath}' - ${user} ${group} - -"
|
||||||
|
];
|
||||||
|
|
||||||
systemd.services.teamspeak3-server = {
|
systemd.services.teamspeak3-server = {
|
||||||
description = "Teamspeak3 voice communication server daemon";
|
description = "Teamspeak3 voice communication server daemon";
|
||||||
after = [ "network.target" ];
|
after = [ "network.target" ];
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
|
||||||
preStart = ''
|
|
||||||
mkdir -p ${cfg.logPath}
|
|
||||||
chown ${user}:${group} ${cfg.logPath}
|
|
||||||
'';
|
|
||||||
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart = ''
|
ExecStart = ''
|
||||||
${ts3}/bin/ts3server \
|
${ts3}/bin/ts3server \
|
||||||
|
@ -135,7 +134,6 @@ in
|
||||||
WorkingDirectory = cfg.dataDir;
|
WorkingDirectory = cfg.dataDir;
|
||||||
User = user;
|
User = user;
|
||||||
Group = group;
|
Group = group;
|
||||||
PermissionsStartOnly = true;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue