# bash -x unbound-control-setup
+ DESTDIR=/etc/unbound
+ SERVERNAME=unbound
+ CLIENTNAME=unbound-control
+ DAYS=7200
+ BITS=3072
+ HASH=sha256
+ SVR_BASE=unbound_server
+ CTL_BASE=unbound_control
+ RECREATE=0
+ umask 0027
+ set -eu
+ OPTIND=1
+ getopts d:hr arg
+ shift 0
+ openssl
^C
Changing:
if ! openssl >/dev/null 2>&1; then
to
if ! openssl </dev/null >/dev/null 2>&1; then
resolves the issue.
Tested on Solaris.
Changing:
if ! openssl >/dev/null 2>&1; thento
if ! openssl </dev/null >/dev/null 2>&1; thenresolves the issue.
Tested on Solaris.