diff options
author | Marius Bakke <marius@gnu.org> | 2022-01-25 15:49:09 +0100 |
---|---|---|
committer | Marius Bakke <marius@gnu.org> | 2022-01-26 09:31:45 +0100 |
commit | 88e4c8740a8ae3d8e255913d0a0c690c325d2a27 (patch) | |
tree | 814c34fbd2d5c6e49d9be026fad4925e34d952f9 /gnu | |
parent | bbc2fb0d52128c85c92251ed36d8063b3dcf3c3a (diff) |
services: zabbix-agent: Respect user and group configuration.
* gnu/services/monitoring.scm (zabbix-agent-account): Look up user and group
from CONFIG instead of hard-coded values.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/services/monitoring.scm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/services/monitoring.scm b/gnu/services/monitoring.scm index f15450eed5..5337161462 100644 --- a/gnu/services/monitoring.scm +++ b/gnu/services/monitoring.scm @@ -431,8 +431,8 @@ configuration file.")) (define (zabbix-agent-account config) "Return the user accounts and user groups for CONFIG." - (let ((zabbix-user "zabbix") - (zabbix-group "zabbix")) + (let ((zabbix-user (zabbix-agent-configuration-user config)) + (zabbix-group (zabbix-agent-configuration-group config))) (list (user-group (name zabbix-group) (system? #t)) (user-account (name zabbix-user) |