zabbix_agent: Ensure that the user exists on all systems

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2019-03-08 09:58:56 +00:00
parent 06fc6170a2
commit 661fdb02c2

View File

@@ -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.