docker-avahi/docker-entrypoint.sh
2021-12-17 11:51:25 +00:00

13 lines
343 B
Bash
Executable file

#!/bin/sh -e
if [ ! -z "${ALLOW_INTERFACES}" ]; then
sed -i "s/.*allow-interfaces=.*/allow-interfaces=${ALLOW_INTERFACES}/" /etc/avahi/avahi-daemon.conf
fi
if [ ! -z "${DENY_INTERFACES}" ]; then
sed -i "s/.*deny-interfaces=.*/deny-interfaces=${DENY_INTERFACES}/" /etc/avahi/avahi-daemon.conf
fi
rm -f /var/run/avahi-daemon/*
exec "$@"