sps / start.sh
agosh's picture
Update start.sh
efdf785 verified
Raw
History Blame Contribute Delete
296 Bytes
#!/bin/bash
PA=$(pwd)
cd /run/demonss/
PN=$(pwd)
if [[ "$PA" == "$PN" ]]; then
echo "false"
exit 127
fi
if [[ "$1" == "-i" ]]; then
npm install express http-proxy-middleware
npm install ws
npm install node-pty
else
node server.js& >/dev/null
node s.js
echo "=== ERROR ==="
fi