瀏覽代碼

links to nodejs

Bob Mottram 8 年之前
父節點
當前提交
ce210932fd
沒有帳戶連結到提交者的電子郵件
共有 1 個檔案被更改,包括 16 行新增0 行删除
  1. 16
    0
      src/freedombone-app-ipfs

+ 16
- 0
src/freedombone-app-ipfs 查看文件

210
     chroot ${rootdir} apt-get -y install npm
210
     chroot ${rootdir} apt-get -y install npm
211
     chroot ${rootdir} apt-get -y install libpam0g-dev fuse
211
     chroot ${rootdir} apt-get -y install libpam0g-dev fuse
212
 
212
 
213
+    if [ ! -f ${rootdir}/usr/bin/nodejs ]; then
214
+        echo $'nodejs was not installed'
215
+        exit 63962
216
+    fi
217
+
218
+    chroot ${rootdir} ln -s /usr/bin/nodejs /usr/bin/node
219
+    chroot ${rootdir} ln -s /usr/bin/nodejs /usr/local/bin/node
220
+
213
     chroot ${rootdir} npm cache clean -f
221
     chroot ${rootdir} npm cache clean -f
214
     chroot ${rootdir} npm install -g n
222
     chroot ${rootdir} npm install -g n
215
     chroot ${rootdir} n ${IPFS_NODE_VERSION}
223
     chroot ${rootdir} n ${IPFS_NODE_VERSION}
278
     apt-get -y install npm
286
     apt-get -y install npm
279
     apt-get -y install libpam0g-dev fuse
287
     apt-get -y install libpam0g-dev fuse
280
 
288
 
289
+    if [ ! -f /usr/bin/nodejs ]; then
290
+        echo $'nodejs was not installed'
291
+        exit 63962
292
+    fi
293
+
294
+    ln -s /usr/bin/nodejs /usr/bin/node
295
+    ln -s /usr/bin/nodejs /usr/local/bin/node
296
+
281
     npm cache clean -f
297
     npm cache clean -f
282
     npm install -g n
298
     npm install -g n
283
     n ${IPFS_NODE_VERSION}
299
     n ${IPFS_NODE_VERSION}