rm objects

This commit is contained in:
Kameron Kenny 2024-12-30 11:44:18 -05:00
parent f65ec4a259
commit 61c8f97ede
2 changed files with 2 additions and 2 deletions

View File

@ -247,7 +247,7 @@ COPY overlay/opt/nagios/libexec/* ${NAGIOS_HOME}/libexec/
#COPY overlay/usr ${NAGIOS_HOME}/usr #COPY overlay/usr ${NAGIOS_HOME}/usr
RUN cd /opt/nagios/etc/objects && \ RUN cd /opt/nagios/etc/objects && \
rm -f commands.cfg contacts.cfg printer.cfg switch.cfg templates.cfg windows.cfg rm -f commands.cfg printer.cfg switch.cfg templates.cfg windows.cfg
RUN sed -i 's,/bin/mail,/usr/bin/mail,' ${NAGIOS_HOME}/etc/objects/000-commands.cfg && \ RUN sed -i 's,/bin/mail,/usr/bin/mail,' ${NAGIOS_HOME}/etc/objects/000-commands.cfg && \
sed -i 's,/usr/usr,/usr,' ${NAGIOS_HOME}/etc/objects/000-commands.cfg sed -i 's,/usr/usr,/usr,' ${NAGIOS_HOME}/etc/objects/000-commands.cfg

View File

@ -12,7 +12,7 @@ services:
build: build:
dockerfile: Dockerfile dockerfile: Dockerfile
container_name: nagios container_name: nagios
image: docker-registry1.in.thelinuxpro.net:5000/tlp/nagios:241230.0.4 image: docker-registry1.in.thelinuxpro.net:5000/tlp/nagios:241230.0.5
networks: networks:
infra_dev_net: infra_dev_net:
ipv4_address: 10.99.23.36 ipv4_address: 10.99.23.36