mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-08-10 00:47:51 +02:00
Added sudo package for nmap processing
This commit is contained in:
@ -35,6 +35,7 @@ COPY --from=builder ["/tmp/zabbix-${ZBX_VERSION}/conf/zabbix_proxy.conf", "/etc/
|
||||
RUN set -eux && \
|
||||
INSTALL_PKGS="bash \
|
||||
tini \
|
||||
sudo \
|
||||
traceroute \
|
||||
nmap \
|
||||
fping \
|
||||
@ -66,6 +67,7 @@ RUN set -eux && \
|
||||
--shell /sbin/nologin \
|
||||
--home /var/lib/zabbix/ \
|
||||
zabbix && \
|
||||
echo "zabbix ALL=(root) NOPASSWD: /usr/bin/nmap" >> /etc/sudoers.d/zabbix && \
|
||||
adduser zabbix root && \
|
||||
mkdir -p /etc/zabbix && \
|
||||
mkdir -p /var/lib/zabbix && \
|
||||
|
Reference in New Issue
Block a user