mirror of https://github.com/cowrie/cowrie.git
Use command instead of which for checking authbind (#1145)
This commit is contained in:
parent
4ef3d18270
commit
571d4f0308
|
@ -102,7 +102,7 @@ cowrie_start() {
|
|||
|
||||
# Automatically check if the authbind is enabled or not
|
||||
authfile="/etc/authbind/byport/22"
|
||||
if [ -z ${AUTHBIND_ENABLED} ] && [ -x "$authfile" ] && which authbind>/dev/null; then
|
||||
if [ -z ${AUTHBIND_ENABLED} ] && [ -x "$authfile" ] && command -v authbind >/dev/null; then
|
||||
AUTHBIND_ENABLED=yes
|
||||
else
|
||||
AUTHBIND_ENABLED=no
|
||||
|
|
Loading…
Reference in New Issue