Browse Source

Additional node copy

Bob Mottram 7 years ago
parent
commit
df252acac5
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      src/freedombone-utils-nodejs

+ 3
- 0
src/freedombone-utils-nodejs View File

@@ -141,6 +141,9 @@ function mesh_install_nodejs {
141 141
         cp "$rootdir/usr/local/bin/npm" /usr/bin/npm
142 142
     fi
143 143
     cp "$rootdir/usr/bin/npm" "$rootdir/root/npm"
144
+    if [ -f "$rootdir/usr/bin/node" ]; then
145
+        cp "$rootdir/usr/bin/node" "$rootdir/usr/local/bin/node"
146
+    fi
144 147
 
145 148
     # check the version numbers
146 149
     cat <<EOF > "$rootdir/usr/bin/test_nodejs_install"