From: Michael Tremer Date: Fri, 8 Mar 2019 09:58:56 +0000 (+0000) Subject: zabbix_agent: Ensure that the user exists on all systems X-Git-Tag: v2.23-core131~144 X-Git-Url: http://git.ipfire.org/?p=ipfire-2.x.git;a=commitdiff_plain;h=661fdb02c28c64748b98a305dc63281a9225bbd8 zabbix_agent: Ensure that the user exists on all systems Signed-off-by: Michael Tremer --- diff --git a/src/paks/zabbix_agentd/install.sh b/src/paks/zabbix_agentd/install.sh index ebbb62d635..e1450a1d81 100644 --- a/src/paks/zabbix_agentd/install.sh +++ b/src/paks/zabbix_agentd/install.sh @@ -23,6 +23,14 @@ # . /opt/pakfire/lib/functions.sh +if ! getent group zabbix &>/dev/null; then + groupadd -g 118 zabbix +fi + +if ! getent passwd zabbix; then + useradd -u 118 -g zabbix -d /var/empty -s /bin/false zabbix +fi + extract_files # Create symlinks for runlevel interaction.