Add npm install on video module

This commit is contained in:
Yossi 2017-12-11 21:35:30 +02:00
parent bf2cf52a9f
commit 5b218b7a73

View File

@ -220,7 +220,7 @@ if [ ${OS_TYPE} == "drideOS" ]; then
sudo wget https://dride.io/code/startup/dride-core
sudo wget https://dride.io/code/startup/drideOS-resize
else
sudo wget https://dride.io/code/startup/dride-core-z
sudo wget https://dride.io/code/startup/dride-core
fi;
@ -234,7 +234,7 @@ sudo rm dride-ws
if [ ${OS_TYPE} == "drideOS" ]; then
sudo cp dride-core /etc/init.d/dride-core
else
sudo cp dride-core-z /etc/init.d/dride-core
sudo cp dride-core /etc/init.d/dride-core
fi;
sudo chmod +x /etc/init.d/dride-core
@ -375,6 +375,10 @@ sudo chmod +x /home/Cardigan/daemons/gps/position
# make the firmware dir writable
sudo chmod 777 -R /home/Cardigan/firmware/
# run npm install on video module
cd /home/Cardigan/modules/video
sudo npm i --production
# run npm install on dride-ws
cd /home/Cardigan/dride-ws