From 88e4c8740a8ae3d8e255913d0a0c690c325d2a27 Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Tue, 25 Jan 2022 15:49:09 +0100 Subject: [PATCH] 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. --- gnu/services/monitoring.scm | 4 ++-- 1 file 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 @@ (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)