From 5b218b7a73727dfbbd35e36d2d4b252dfc8f74ba Mon Sep 17 00:00:00 2001 From: Yossi Date: Mon, 11 Dec 2017 21:35:30 +0200 Subject: [PATCH] Add npm install on video module --- stage2/01-sys-tweaks/01-run.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/stage2/01-sys-tweaks/01-run.sh b/stage2/01-sys-tweaks/01-run.sh index 1c0978a..9f2e8b9 100755 --- a/stage2/01-sys-tweaks/01-run.sh +++ b/stage2/01-sys-tweaks/01-run.sh @@ -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