forked from p15670423/monkey
15 lines
393 B
Bash
15 lines
393 B
Bash
#!/bin/bash
|
|
|
|
PYTHON_CMD="$APPDIR"/opt/python3.7/bin/python3.7
|
|
DOT_MONKEY="$HOME"/.monkey_island/
|
|
|
|
# shellcheck disable=SC2174
|
|
mkdir --mode=0700 --parents "$DOT_MONKEY"
|
|
|
|
DB_DIR="$DOT_MONKEY"/db
|
|
mkdir --parents "$DB_DIR"
|
|
|
|
cd "$APPDIR"/usr/src || exit 1
|
|
./monkey_island/bin/mongodb/bin/mongod --dbpath "$DB_DIR" &
|
|
${PYTHON_CMD} ./monkey_island.py --server-config "$DOT_MONKEY"/server_config.json
|