mirror of https://github.com/MISP/misp-dashboard
- Maybe a fix for a very weird bash behaviour… see: http://pastebin.lu/ovilikesos.bash
parent
9691536a21
commit
e070b94b4e
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
set -x
|
set -x
|
||||||
|
@ -9,6 +9,7 @@ RED="\\033[1;31m"
|
||||||
|
|
||||||
# Getting CWD where bash script resides
|
# Getting CWD where bash script resides
|
||||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
DASH_HOME=${DIR}
|
||||||
|
|
||||||
if [ -e "${DIR}/DASHENV/bin/python" ]; then
|
if [ -e "${DIR}/DASHENV/bin/python" ]; then
|
||||||
echo "dashboard virtualenv seems to exist, good"
|
echo "dashboard virtualenv seems to exist, good"
|
||||||
|
@ -24,7 +25,7 @@ if [ ! -e "${redis_dir}" ]; then
|
||||||
redis_dir=""
|
redis_dir=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
check_redis_port=$(netstat -an |grep LISTEN |grep 6250 |grep -v tcp6)
|
check_redis_port="$(netstat -an |grep LISTEN |grep 6250 |grep -v tcp6)"
|
||||||
|
|
||||||
# Configure accordingly, remember: 0.0.0.0 exposes to every active IP interface, play safe and bind it to something you trust and know
|
# Configure accordingly, remember: 0.0.0.0 exposes to every active IP interface, play safe and bind it to something you trust and know
|
||||||
export FLASK_APP=server.py
|
export FLASK_APP=server.py
|
||||||
|
|
Loading…
Reference in New Issue