disable cron.js launch on new install

rkmpp-v4l2m2m-decode
Moe 2022-12-03 07:57:53 -08:00
parent 8c3b7c69a4
commit af891a7b9e
9 changed files with 10 additions and 10 deletions

View File

@ -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)

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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