From 1ffce90c3e23b82640f49d5e5d21ea611c16525d Mon Sep 17 00:00:00 2001 From: Yossi Date: Mon, 23 Jan 2017 19:57:49 +0200 Subject: [PATCH] dride-ws from a zip --- stage2/01-sys-tweaks/01-run.sh | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/stage2/01-sys-tweaks/01-run.sh b/stage2/01-sys-tweaks/01-run.sh index a669085..9504842 100755 --- a/stage2/01-sys-tweaks/01-run.sh +++ b/stage2/01-sys-tweaks/01-run.sh @@ -142,9 +142,24 @@ cd Cardigan sudo chmod 777 -R modules/video/ # clone dride-ws -cd dride-ws -sudo git clone --depth 1 https://github.com/dride/dride-ws.git +cd /home/Cardigan +sudo rm -R dride-ws +sudo mkdir dride-ws +cd dride-ws +wget -c -O "dride-ws-0.1.4.zip" "https://github.com/dride/dride-ws/archive/0.1.4.zip" +sudo apt-get install unzip +unzip -q -n "dride-ws-0.1.4.zip" + +sudo rm dride-ws-0.1.4.zip + +cd dride-ws-0.1.4 +find . -maxdepth 1 -exec mv {} .. \; + +cd /home/Cardigan/dride-ws +sudo rm dride-ws-0.1.4 +sudo rm npmbox.npmbox +sudo npm i cd / @@ -220,10 +235,6 @@ sudo update-rc.d hostapd enable sudo update-rc.d isc-dhcp-server enable -# dride-ws -cd /home/Cardigan/dride-ws -sudo npm i - sudo wget https://dride.io/code/startup/dride-ws sudo wget https://dride.io/code/startup/dride-core