This repository has been archived on 2024-03-03. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
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

13 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 "$@"