mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
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.
This commit is contained in:
parent
bbc2fb0d52
commit
88e4c8740a
1 changed files with 2 additions and 2 deletions
|
@ -431,8 +431,8 @@ (define-configuration zabbix-agent-configuration
|
|||
|
||||
(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)
|
||||
|
|
Loading…
Reference in a new issue