mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-13 04:22:58 +02:00
zabbix_agent: Ensure that the user exists on all systems
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user