forked from p15670423/monkey
re-added deadsnakes ppa, because ubuntu 16 doesn't support py3.7 reps
This commit is contained in:
parent
4457cdc0c8
commit
a305611558
|
@ -118,10 +118,13 @@ sudo apt-get install openssl
|
|||
|
||||
# Generate SSL certificate
|
||||
log_message "Generating certificate"
|
||||
sudo chmod +x ${ISLAND_PATH}/linux/create_certificate.sh || handle_error
|
||||
${ISLAND_PATH}/linux/create_certificate.sh || handle_error
|
||||
cd ${ISLAND_PATH}
|
||||
openssl genrsa -out cc/server.key 2048
|
||||
openssl req -new -key cc/server.key -out cc/server.csr -subj "/C=GB/ST=London/L=London/O=Global Security/OU=Monkey Department/CN=monkey.com"
|
||||
openssl x509 -req -days 366 -in cc/server.csr -signkey cc/server.key -out cc/server.crt
|
||||
|
||||
# Update node
|
||||
cd "$ISLAND_PATH/cc/ui" || handle_error
|
||||
log_message "Installing nodejs"
|
||||
sudo apt-get install -y nodejs
|
||||
|
||||
|
@ -131,7 +134,6 @@ sudo apt-get install npm
|
|||
npm update
|
||||
|
||||
log_message "Generating front end"
|
||||
cd "$ISLAND_PATH/cc/ui" || handle_error
|
||||
npm run dist
|
||||
|
||||
# Making dir for binaries
|
||||
|
|
|
@ -12,5 +12,5 @@ if [[ `python3.7 --version 2>&1` == *"Python 3.7"* ]]; then
|
|||
python_cmd="python3.7"
|
||||
fi
|
||||
|
||||
./monkey_island/bin/mongodb/bin/mongod --dbpath ./monkey_island/bin/mongodb/db
|
||||
./monkey_island/bin/mongodb/bin/mongod --dbpath ./monkey_island/bin/mongodb/db &
|
||||
${python_cmd} ./monkey_island.py
|
||||
|
|
Loading…
Reference in New Issue