diff options
author | Jakob Stendahl <14180120+JakobST1n@users.noreply.github.com> | 2021-11-13 19:40:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-13 19:40:07 +0100 |
commit | d20daf1abf82c5b2a27d919f60404959497c9c42 (patch) | |
tree | e1bbb55847cdb6932b6185cc6608dd225e9c7954 | |
parent | 2389ba6cd27dadabf020b128c131aa5086389d87 (diff) | |
download | Luxcena-Neo-d20daf1abf82c5b2a27d919f60404959497c9c42.tar.gz Luxcena-Neo-d20daf1abf82c5b2a27d919f60404959497c9c42.zip |
Update install.sh
-rwxr-xr-x | bin/install.sh | 15 |
1 files changed, 12 insertions, 3 deletions
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\"" |