WIP: actually test PERMIT_DOCKER=connected-networks

also showcase timeouts and makefile integration
This commit is contained in:
Martin Schulze 2019-08-07 02:24:56 +02:00
parent eb988aba43
commit fcce47a392
7 changed files with 139 additions and 29 deletions

View file

@ -1040,6 +1040,7 @@ function _setup_docker_permit() {
;;
"connected-networks" )
for network in $container_networks; do
network=$(_sanitize_ipv4_to_subnet_cidr $network)
notify 'inf' "Adding docker network $network in my networks"
postconf -e "$(postconf | grep '^mynetworks =') $network"
echo $network >> /etc/opendmarc/ignore.hosts
@ -1611,6 +1612,8 @@ function _start_changedetector() {
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# >>
. /usr/local/bin/helper_functions.sh
if [[ ${DEFAULT_VARS["DMS_DEBUG"]} == 1 ]]; then
notify 'taskgrp' ""
notify 'taskgrp' "#"