This repository has been archived on 2024-03-03. You can view files and clone it, but cannot push or open issues or pull requests.
adlin/pkg/unbound/docker-entrypoint.sh

14 lines
185 B
Bash
Raw Normal View History

2018-02-19 20:35:08 +00:00
#!/bin/sh
set -e
if [ `which "unbound-$1" 2>/dev/null` ]; then
2018-02-19 20:35:08 +00:00
set -- unbound-"$@"
elif [ ! `which "$1" 2>/dev/null` ]; then
2018-02-19 20:35:08 +00:00
set -- unbound -dv "$@"
fi
unbound-anchor
exec "$@"