Commit 57cd4def authored by Damian Montero's avatar Damian Montero Committed by GitHub

Merge pull request #789 from flyingP0tat0/master

Fix node install permissions
parents 946c6202 b9480580
......@@ -17,9 +17,12 @@ class Node < Package
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
#Fix Permissiongs for -g installs of node packages
system "sudo chown -R chronos /usr/local/lib/node_modules"
# Fix Permissiongs for -g installs of node packages
system "sudo chown -R chronos /usr/local/bin"
system "sudo chown -R chronos /usr/local/share"
if Dir.exists?('/usr/local/lib/node_modules')
system "sudo chown -R chronos /usr/local/lib/node_modules"
end
end
end
......@@ -3,9 +3,9 @@ require 'package'
class Node_current < Package
description 'As an asynchronous event driven JavaScript runtime, Node is designed to build scalable network applications.'
homepage 'https://nodejs.org/en/'
version '8.1.0'
source_url 'https://nodejs.org/dist/v8.1.0/node-v8.1.0.tar.xz'
source_sha1 '13ed221ed55577beac5203c3c8bfec61af3cad97'
version '8.1.2'
source_url 'https://nodejs.org/dist/v8.1.2/node-v8.1.2.tar.gz'
source_sha1 'e80d3e6ae766349a925911f0a8e5533827c58673'
depends_on 'buildessential'
depends_on 'python27'
......@@ -22,9 +22,12 @@ class Node_current < Package
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
#Fix Permissiongs for -g installs of node packages
system "sudo chown -R chronos /usr/local/lib/node_modules"
# Fix Permissiongs for -g installs of node packages
system "sudo chown -R chronos /usr/local/bin"
system "sudo chown -R chronos /usr/local/share"
if Dir.exists?('/usr/local/lib/node_modules')
system "sudo chown -R chronos /usr/local/lib/node_modules"
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment