Use command instead of which for checking authbind (#1145)

This commit is contained in:
Mehtab Zafar 2019-06-20 12:58:18 +05:30 committed by Michel Oosterhof
parent 4ef3d18270
commit 571d4f0308
1 changed files with 1 additions and 1 deletions

View File

@ -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