mirror of https://github.com/cowrie/cowrie.git
handle undefined variables
This commit is contained in:
parent
2670dd4852
commit
dc08cbb6c7
|
@ -63,20 +63,20 @@ cowrie_start() {
|
|||
TWISTEDARGS="${DAEMONIZE} ${XARGS} --umask 0077 --pidfile ${PIDFILE}"
|
||||
|
||||
# For Docker log to stdout, for non-Docker log to file
|
||||
if [ $DOCKER = "yes" ]
|
||||
if [ "$DOCKER" = "yes" ]
|
||||
then
|
||||
TWISTEDARGS="${TWISTEDARGS} -l -"
|
||||
else
|
||||
TWISTEDARGS="${TWISTEDARGS} -l log/cowrie.log"
|
||||
fi
|
||||
|
||||
if [ $VIRTUALENV_ENABLED = "yes" ]
|
||||
if [ "$VIRTUALENV_ENABLED" = "yes" ]
|
||||
then
|
||||
activate_venv "cowrie-env"
|
||||
fi
|
||||
|
||||
echo "Starting cowrie: [twistd ${TWISTEDARGS} cowrie ${COWRIEARGS}]..."
|
||||
if [ $AUTHBIND_ENABLED = "no" ]
|
||||
if [ "$AUTHBIND_ENABLED" = "no" ]
|
||||
then
|
||||
twistd ${TWISTEDARGS} ${COWRIEARGS} cowrie
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue