handle undefined variables

This commit is contained in:
Michel Oosterhof 2017-07-01 19:33:45 +02:00
parent 2670dd4852
commit dc08cbb6c7
1 changed files with 3 additions and 3 deletions

View File

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