mirror of
git://git.savannah.gnu.org/guix.git
synced 2023-12-14 03:33:07 +01: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 @@ 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)
|
||||
|
|
Loading…
Reference in a new issue