瀏覽代碼

Ensure that the ipfs command is executable

Bob Mottram 7 年之前
父節點
當前提交
6384897ecc
共有 2 個檔案被更改,包括 2 行新增0 行删除
  1. 1
    0
      src/freedombone-app-ipfs
  2. 1
    0
      src/freedombone-image-mesh

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

@@ -539,6 +539,7 @@ function install_ipfs_go {
539 539
     fi
540 540
 
541 541
     # initialise
542
+    chmod +x $IPFS_PATH/ipfs
542 543
     su -c "$IPFS_PATH/ipfs init -b 2048" - $MY_USERNAME
543 544
     if [ ! -d /home/$MY_USERNAME/.ipfs ]; then
544 545
         echo "IPFS could not be initialised for user $MY_USERNAME"

+ 1
- 0
src/freedombone-image-mesh 查看文件

@@ -1033,6 +1033,7 @@ function setup_ipfs {
1033 1033
         shred -zu /home/$MY_USERNAME/.ipfs-public
1034 1034
     fi
1035 1035
 
1036
+    chmod +x $IPFS_COMMAND
1036 1037
     su -c "$IPFS_COMMAND init -b $IPFS_KEY_LENGTH" - $MY_USERNAME
1037 1038
     if [ ! -d /home/$MY_USERNAME/.ipfs ]; then
1038 1039
         echo "IPFS could not be initialised for user $MY_USERNAME" >> $INSTALL_LOG