nixos/opentelemetry-collector: Avoid using a fixed hardcoded path
Follow the boyscout rule.
This commit is contained in:
@@ -63,7 +63,7 @@ in
|
||||
ProtectSystem = "full";
|
||||
DevicePolicy = "closed";
|
||||
NoNewPrivileges = true;
|
||||
WorkingDirectory = "/var/lib/opentelemetry-collector";
|
||||
WorkingDirectory = "%S/opentelemetry-collector";
|
||||
StateDirectory = "opentelemetry-collector";
|
||||
SupplementaryGroups = [
|
||||
# allow to read the systemd journal for opentelemetry-collector
|
||||
|
||||
Reference in New Issue
Block a user