Kaynağa Gözat

links to nodejs

Bob Mottram 9 yıl önce
ebeveyn
işleme
ce210932fd
No account linked to committer's email
1 değiştirilmiş dosya ile 16 ekleme ve 0 silme
  1. 16
    0
      src/freedombone-app-ipfs

+ 16
- 0
src/freedombone-app-ipfs Dosyayı Görüntüle

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}