- Added comment on MaxMind DB

- Added preliminary checks for redis-server
pull/31/head
Steve Clement 2018-01-06 12:07:14 +01:00
parent 766a42cf7c
commit 5529d64696
2 changed files with 11 additions and 3 deletions

View File

@ -55,7 +55,8 @@ channelLastAwards = lastAwards
[RedisMap] [RedisMap]
db=1 db=1
channelDisp=PicToDisplay channelDisp=PicToDisplay
pathMaxMindDB=./data/GeoLite2-City_20171003/GeoLite2-City.mmdb # Database updates regularly make sure to adapt date
pathMaxMindDB=./data/GeoLite2-City_20180102/GeoLite2-City.mmdb
path_countrycode_to_coord_JSON=./data/country_code_lat_long.json path_countrycode_to_coord_JSON=./data/country_code_lat_long.json
[RedisDB] [RedisDB]

View File

@ -6,10 +6,17 @@ GREEN="\\033[1;32m"
DEFAULT="\\033[0;39m" DEFAULT="\\033[0;39m"
RED="\\033[1;31m" RED="\\033[1;31m"
[ -z "$DASH_HOME" ] && echo "Needs the env var DASHENV. Run the script from the virtual environment." && exit 1; [ -z "$DASH_HOME" ] && echo "Needs the env var DASHENV. (Did you: . ./DASHENV/bin/activate ) Please run the script from the virtual environment." && exit 1;
redis_dir="${DASH_HOME}/../redis/src/"
if [ -e "${redis_dir}" ]; then
redis_dir=""
fi
[ -f "`which redis-server`" ] || [ ! -e "${redis_dir}" ] && echo "Either ${DASH_HOME}/../redis/src/ does not exist or 'redis-server' is not installed/not on PATH. Please fix and run again." && exit 1
conf_dir="${DASH_HOME}/config/" conf_dir="${DASH_HOME}/config/"
redis_dir="${DASH_HOME}/../redis/src/"
screenName="Misp-Dashboard" screenName="Misp-Dashboard"
screen -dmS "$screenName" screen -dmS "$screenName"