#!/bin/bash

BASEDIR=$(dirname "$0")

mkdir -p $BASEDIR/logs
log_file=$(date "+%Y_%m_%d-%H_%M_%S")

echo '[*] Sniffer has been deployed.'
$BASEDIR/env/bin/python $BASEDIR/app.py 2>&1 | tee $BASEDIR/logs/$log_file.log

#!/bin/bash

BASEDIR=$(dirname -- "$(readlink -f -- "${BASH_SOURCE}")")

mkdir -p $BASEDIR/logs
log_file=$(date "+%Y_%m_%d-%H_%M_%S")

echo '[*] Sniffer has been deployed.'
$BASEDIR/env/bin/python $BASEDIR/app.py 2>&1 | tee $BASEDIR/logs/$log_file.log

Change BASEDIR calculation in sniffer
Change BASEDIR calculation in sniffer
