2017-12-06 16:23:13 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
GREEN="\\033[1;32m"
|
|
|
|
DEFAULT="\\033[0;39m"
|
|
|
|
RED="\\033[1;31m"
|
|
|
|
|
2018-04-01 18:59:08 +02:00
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
DASH_HOME="${DIR}/.."
|
2017-12-06 16:23:13 +01:00
|
|
|
|
|
|
|
conf_dir="${DASH_HOME}/config/"
|
|
|
|
redis_dir="${DASH_HOME}/../redis/src/"
|
|
|
|
test_dir="${DASH_HOME}/tests/"
|
|
|
|
screenName="Misp-Dashboard-test"
|
|
|
|
|
|
|
|
screen -dmS "$screenName"
|
|
|
|
sleep 0.1
|
2017-12-11 08:58:51 +01:00
|
|
|
echo -e $GREEN"* Launching Redis servers"$DEFAULT
|
2017-12-06 16:23:13 +01:00
|
|
|
screen -S "$screenName" -X screen -t "redis-server" bash -c $redis_dir'redis-server --port 6260; read x'
|