Browse Source

Ensure that the ipfs command is executable

Bob Mottram 7 years ago
parent
commit
6384897ecc
2 changed files with 2 additions and 0 deletions
  1. 1
    0
      src/freedombone-app-ipfs
  2. 1
    0
      src/freedombone-image-mesh

+ 1
- 0
src/freedombone-app-ipfs View File

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 View File

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