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
Pierre-Olivier Mercier 3613da33cf pkg/unbound: Avoid unquoted var
Thanks-To: Elie Brami <elie.brami@epita.fr>
2022-04-21 13:49:37 +02:00

14 lines
185 B
Bash
Executable File

#!/bin/sh
set -e
if [ `which "unbound-$1" 2>/dev/null` ]; then
set -- unbound-"$@"
elif [ ! `which "$1" 2>/dev/null` ]; then
set -- unbound -dv "$@"
fi
unbound-anchor
exec "$@"