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
|
||||
sudo pm2 start camera.js
|
||||
sudo pm2 start cron.js
|
||||
#sudo pm2 start cron.js
|
||||
fi
|
||||
|
||||
ipaddress=$(hostname -I)
|
||||
|
|
|
@ -109,7 +109,7 @@ echo "(y)es or (N)o"
|
|||
read startShinobi
|
||||
if [ "$startShinobi" = "y" ] || [ "$startShinobi" = "Y" ]; then
|
||||
sudo pm2 start camera.js
|
||||
sudo pm2 start cron.js
|
||||
#sudo pm2 start cron.js
|
||||
sudo pm2 startup
|
||||
sudo pm2 save
|
||||
sudo pm2 list
|
||||
|
|
|
@ -22,7 +22,7 @@ npm install pm2@latest -g
|
|||
cp conf.sample.json conf.json
|
||||
cp super.sample.json super.json
|
||||
pm2 start camera.js
|
||||
pm2 start cron.js
|
||||
#pm2 start cron.js
|
||||
pm2 save
|
||||
pm2 list
|
||||
pm2 startup rcd
|
||||
|
|
|
@ -100,7 +100,7 @@ echo "(y)es or (N)o"
|
|||
read -r startShinobi
|
||||
if [ "$startShinobi" = "y" ] || [ "$startShinobi" = "Y" ]; then
|
||||
sudo pm2 start camera.js
|
||||
sudo pm2 start cron.js
|
||||
#sudo pm2 start cron.js
|
||||
sudo pm2 startup
|
||||
sudo pm2 save
|
||||
sudo pm2 list
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
if [ -e "INSTALL/installed.txt" ]; then
|
||||
echo "Starting Shinobi"
|
||||
pm2 start camera.js
|
||||
pm2 start cron.js
|
||||
#pm2 start cron.js
|
||||
pm2 logs
|
||||
fi
|
||||
if [ ! -e "INSTALL/installed.txt" ]; then
|
||||
chmod +x INSTALL/now.sh&&INSTALL/now.sh
|
||||
fi
|
||||
fi
|
||||
|
|
|
@ -172,6 +172,6 @@ echo "(y)es or (N)o"
|
|||
read -r startShinobi
|
||||
if [ "$startShinobi" = "y" ]; then
|
||||
pm2 start camera.js
|
||||
pm2 start cron.js
|
||||
#pm2 start cron.js
|
||||
pm2 list
|
||||
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)}')\"}}"
|
||||
echo "Shinobi - Starting Shinobi and setting to start on boot"
|
||||
sudo pm2 start camera.js
|
||||
sudo pm2 start cron.js
|
||||
#sudo pm2 start cron.js
|
||||
sudo pm2 startup
|
||||
sudo pm2 save
|
||||
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)}')\"}}"
|
||||
echo "Shinobi - Starting Shinobi and setting to start on boot"
|
||||
sudo pm2 start camera.js
|
||||
sudo pm2 start cron.js
|
||||
#sudo pm2 start cron.js
|
||||
sudo pm2 startup
|
||||
sudo pm2 save
|
||||
sudo pm2 list
|
||||
|
|
|
@ -125,7 +125,7 @@ echo "(y)es or (N)o"
|
|||
read -r startShinobi
|
||||
if [ "$startShinobi" = "y" ] || [ "$startShinobi" = "y" ]; then
|
||||
sudo pm2 start camera.js
|
||||
sudo pm2 start cron.js
|
||||
#sudo pm2 start cron.js
|
||||
sudo pm2 startup
|
||||
sudo pm2 save
|
||||
sudo pm2 list
|
||||
|
|
Loading…
Reference in New Issue