From a60f4e3bada7b02e31c1fad1d0e69556d0eeacc5 Mon Sep 17 00:00:00 2001 From: Vladimir Filimonov Date: Sat, 6 May 2017 21:42:02 +0300 Subject: [PATCH] fixing issue https://github.com/MichMich/MagicMirror/issues/884 --- installers/raspberry.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/installers/raspberry.sh b/installers/raspberry.sh index a76c1a9e..ecdcc842 100644 --- a/installers/raspberry.sh +++ b/installers/raspberry.sh @@ -150,8 +150,7 @@ fi # Use pm2 control like a service MagicMirror read -p "Do you want use pm2 for auto starting of your MagicMirror (y/n)?" choice -if [[ $choice =~ ^[Yy]$ ]] -then +if [[ $choice =~ ^[Yy]$ ]]; then sudo npm install -g pm2 sudo su -c "env PATH=$PATH:/usr/bin pm2 startup linux -u pi --hp /home/pi" pm2 start ~/MagicMirror/installers/pm2_MagicMirror.json