disable cron.js launch on new install
parent
8c3b7c69a4
commit
af891a7b9e
|
@ -306,7 +306,7 @@ read -p "Start Shinobi now? Y/N " startShinobi
|
||||||
|
|
||||||
if [ "${startShinobi^}" = "Y" ]; then
|
if [ "${startShinobi^}" = "Y" ]; then
|
||||||
sudo pm2 start camera.js
|
sudo pm2 start camera.js
|
||||||
sudo pm2 start cron.js
|
#sudo pm2 start cron.js
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ipaddress=$(hostname -I)
|
ipaddress=$(hostname -I)
|
||||||
|
|
|
@ -109,7 +109,7 @@ echo "(y)es or (N)o"
|
||||||
read startShinobi
|
read startShinobi
|
||||||
if [ "$startShinobi" = "y" ] || [ "$startShinobi" = "Y" ]; then
|
if [ "$startShinobi" = "y" ] || [ "$startShinobi" = "Y" ]; then
|
||||||
sudo pm2 start camera.js
|
sudo pm2 start camera.js
|
||||||
sudo pm2 start cron.js
|
#sudo pm2 start cron.js
|
||||||
sudo pm2 startup
|
sudo pm2 startup
|
||||||
sudo pm2 save
|
sudo pm2 save
|
||||||
sudo pm2 list
|
sudo pm2 list
|
||||||
|
|
|
@ -22,7 +22,7 @@ npm install pm2@latest -g
|
||||||
cp conf.sample.json conf.json
|
cp conf.sample.json conf.json
|
||||||
cp super.sample.json super.json
|
cp super.sample.json super.json
|
||||||
pm2 start camera.js
|
pm2 start camera.js
|
||||||
pm2 start cron.js
|
#pm2 start cron.js
|
||||||
pm2 save
|
pm2 save
|
||||||
pm2 list
|
pm2 list
|
||||||
pm2 startup rcd
|
pm2 startup rcd
|
||||||
|
|
|
@ -100,7 +100,7 @@ echo "(y)es or (N)o"
|
||||||
read -r startShinobi
|
read -r startShinobi
|
||||||
if [ "$startShinobi" = "y" ] || [ "$startShinobi" = "Y" ]; then
|
if [ "$startShinobi" = "y" ] || [ "$startShinobi" = "Y" ]; then
|
||||||
sudo pm2 start camera.js
|
sudo pm2 start camera.js
|
||||||
sudo pm2 start cron.js
|
#sudo pm2 start cron.js
|
||||||
sudo pm2 startup
|
sudo pm2 startup
|
||||||
sudo pm2 save
|
sudo pm2 save
|
||||||
sudo pm2 list
|
sudo pm2 list
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
if [ -e "INSTALL/installed.txt" ]; then
|
if [ -e "INSTALL/installed.txt" ]; then
|
||||||
echo "Starting Shinobi"
|
echo "Starting Shinobi"
|
||||||
pm2 start camera.js
|
pm2 start camera.js
|
||||||
pm2 start cron.js
|
#pm2 start cron.js
|
||||||
pm2 logs
|
pm2 logs
|
||||||
fi
|
fi
|
||||||
if [ ! -e "INSTALL/installed.txt" ]; then
|
if [ ! -e "INSTALL/installed.txt" ]; then
|
||||||
|
|
|
@ -172,6 +172,6 @@ echo "(y)es or (N)o"
|
||||||
read -r startShinobi
|
read -r startShinobi
|
||||||
if [ "$startShinobi" = "y" ]; then
|
if [ "$startShinobi" = "y" ]; then
|
||||||
pm2 start camera.js
|
pm2 start camera.js
|
||||||
pm2 start cron.js
|
#pm2 start cron.js
|
||||||
pm2 list
|
pm2 list
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -110,7 +110,7 @@ echo "Shinobi - Randomizing cron key"
|
||||||
node /home/Shinobi/tools/modifyConfiguration.js addToConfig="{\"cron\":{\"key\":\"$(head -c 64 < /dev/urandom | sha256sum | awk '{print substr($1,1,60)}')\"}}"
|
node /home/Shinobi/tools/modifyConfiguration.js addToConfig="{\"cron\":{\"key\":\"$(head -c 64 < /dev/urandom | sha256sum | awk '{print substr($1,1,60)}')\"}}"
|
||||||
echo "Shinobi - Starting Shinobi and setting to start on boot"
|
echo "Shinobi - Starting Shinobi and setting to start on boot"
|
||||||
sudo pm2 start camera.js
|
sudo pm2 start camera.js
|
||||||
sudo pm2 start cron.js
|
#sudo pm2 start cron.js
|
||||||
sudo pm2 startup
|
sudo pm2 startup
|
||||||
sudo pm2 save
|
sudo pm2 save
|
||||||
sudo pm2 list
|
sudo pm2 list
|
||||||
|
|
|
@ -110,7 +110,7 @@ echo "Shinobi - Randomizing cron key"
|
||||||
node tools/modifyConfiguration.js addToConfig="{\"cron\":{\"key\":\"$(head -c 64 < /dev/urandom | sha256sum | awk '{print substr($1,1,60)}')\"}}"
|
node tools/modifyConfiguration.js addToConfig="{\"cron\":{\"key\":\"$(head -c 64 < /dev/urandom | sha256sum | awk '{print substr($1,1,60)}')\"}}"
|
||||||
echo "Shinobi - Starting Shinobi and setting to start on boot"
|
echo "Shinobi - Starting Shinobi and setting to start on boot"
|
||||||
sudo pm2 start camera.js
|
sudo pm2 start camera.js
|
||||||
sudo pm2 start cron.js
|
#sudo pm2 start cron.js
|
||||||
sudo pm2 startup
|
sudo pm2 startup
|
||||||
sudo pm2 save
|
sudo pm2 save
|
||||||
sudo pm2 list
|
sudo pm2 list
|
||||||
|
|
|
@ -125,7 +125,7 @@ echo "(y)es or (N)o"
|
||||||
read -r startShinobi
|
read -r startShinobi
|
||||||
if [ "$startShinobi" = "y" ] || [ "$startShinobi" = "y" ]; then
|
if [ "$startShinobi" = "y" ] || [ "$startShinobi" = "y" ]; then
|
||||||
sudo pm2 start camera.js
|
sudo pm2 start camera.js
|
||||||
sudo pm2 start cron.js
|
#sudo pm2 start cron.js
|
||||||
sudo pm2 startup
|
sudo pm2 startup
|
||||||
sudo pm2 save
|
sudo pm2 save
|
||||||
sudo pm2 list
|
sudo pm2 list
|
||||||
|
|
Loading…
Reference in New Issue