浏览代码

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
     fi
539
     fi
540
 
540
 
541
     # initialise
541
     # initialise
542
+    chmod +x $IPFS_PATH/ipfs
542
     su -c "$IPFS_PATH/ipfs init -b 2048" - $MY_USERNAME
543
     su -c "$IPFS_PATH/ipfs init -b 2048" - $MY_USERNAME
543
     if [ ! -d /home/$MY_USERNAME/.ipfs ]; then
544
     if [ ! -d /home/$MY_USERNAME/.ipfs ]; then
544
         echo "IPFS could not be initialised for user $MY_USERNAME"
545
         echo "IPFS could not be initialised for user $MY_USERNAME"

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

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