comeÃo
This commit is contained in:
22
WEB_SERVER.sh
Normal file
22
WEB_SERVER.sh
Normal file
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
source CONFIG.sh
|
||||
|
||||
# interfaces
|
||||
IP="10.60.0.2"
|
||||
sudo ifconfig enp0s8 $IP netmask 255.255.255.0
|
||||
sudo route add default gw 10.60.0.1
|
||||
|
||||
# instalar node
|
||||
yum list installed nodejs &>/dev/null && echo "Node already installed..." || sudo yum install -y nodejs
|
||||
|
||||
# instalar juice-shop se nao existir
|
||||
if [[ ! -d $HOME/juice-shop ]]; then
|
||||
curl -o js.tar.gz "https://github.com/juice-shop/juice-shop/releases/download/v20.0.0/juice-shop-20.0.0_node24_linux_x64.tgz"
|
||||
tar -xzvf js.tar.gz $HOME/juice-shop
|
||||
fi
|
||||
|
||||
# correr juice shop via npm
|
||||
cd $HOME/juice-shop
|
||||
npm install
|
||||
npm start
|
||||
Reference in New Issue
Block a user