瀏覽代碼

Use unmount

Bob Mottram 9 年之前
父節點
當前提交
ab8ec8734d
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. 3
    1
      src/freedombone-meshweb

+ 3
- 1
src/freedombone-meshweb 查看文件

390
 
390
 
391
 existing_ipfs=$(ps aux | grep ipfs | wc -l)
391
 existing_ipfs=$(ps aux | grep ipfs | wc -l)
392
 if [ $existing_ipfs -lt "2" ]; then
392
 if [ $existing_ipfs -lt "2" ]; then
393
-    ipfs daemon &
393
+    sudo umount /ipfs
394
+    sudo umount /ipns
395
+    ipfs daemon --mount &
394
 fi
396
 fi
395
 
397
 
396
 ZERONET_INDEX=/home/$MY_USERNAME/mesh.html
398
 ZERONET_INDEX=/home/$MY_USERNAME/mesh.html