From d20daf1abf82c5b2a27d919f60404959497c9c42 Mon Sep 17 00:00:00 2001 From: Jakob Stendahl <14180120+JakobST1n@users.noreply.github.com> Date: Sat, 13 Nov 2021 19:40:07 +0100 Subject: Update install.sh --- bin/install.sh | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'bin/install.sh') diff --git a/bin/install.sh b/bin/install.sh index f57eff1..6631799 100755 --- a/bin/install.sh +++ b/bin/install.sh @@ -142,9 +142,18 @@ execCommand "chown -R lux-neo:lux-neo /opt/luxcena-neo" # Install dependencies header "Install dependencies" -execCommand "wget -qO- https://deb.nodesource.com/setup_14.x | bash -" -execCommand "apt -q update" -execCommand "apt -qy install nodejs python3-pip" +if [ "$(uname -m)" = "armv6l" ]; then + wget https://unofficial-builds.nodejs.org/download/release/v14.10.0/node-v14.10.0-linux-armv6l.tar.gz + tar -xzf node-v14.10.0-linux-armv6l.tar.gz + sudo cp -r node-v14.10.0-linux-armv6l/* /usr/local + rm -r node-v14.10.0-linux-armv6l + rm node-v14.10.0-linux-armv6l.tar.gz +else + execCommand "wget -qO- https://deb.nodesource.com/setup_14.x | bash -" + execCommand "apt -q update" + execCommand "apit -qy install nodejs +fi +execCommand "apt -qy install python3-pip" execCommand "pip3 install virtualenv" execCommand "runuser -l 'lux-neo' -c \"export NODE_ENV=development; npm --prefix /opt/luxcena-neo install /opt/luxcena-neo\"" -- cgit v1.2.3