Shinobi/INSTALL/start.sh

10 lines
230 B
Bash
Raw Normal View History

2018-06-09 23:34:06 +00:00
#!/bin/bash
if [ -e "INSTALL/installed.txt" ]; then
echo "Starting Shinobi"
pm2 start camera.js
pm2 start cron.js
pm2 logs
fi
if [ ! -e "INSTALL/installed.txt" ]; then
chmod +x INSTALL/now.sh&&INSTALL/now.sh
fi