1 |
|
2 | if [ -e "INSTALL/installed.txt" ]; then
|
3 | echo "Start as Daemon with PM2?"
|
4 | echo "(y)es or (N)o"
|
5 | read daemon
|
6 | case $oschoicee in
|
7 | "y")
|
8 | echo "Starting Shinobi"
|
9 | pm2 start camera.js&&pm2 start cron.js&&pm2 logs
|
10 | ;;
|
11 | *)
|
12 | echo "Starting Shinobi not as daemon. Cron will not be started."
|
13 | node camera.js
|
14 | ;;
|
15 | esac
|
16 | fi
|
17 | if [ ! -e "INSTALL/installed.txt" ]; then
|
18 | chmod +x INSTALL/now.sh&&INSTALL/now.sh
|
19 | fi |
\ | No newline at end of file |