Ensure that the ipfs command is executable

This commit is contained in:
Bob Mottram 2017-12-30 17:25:59 +00:00
parent 8e25f1fada
commit 6384897ecc
2 changed files with 2 additions and 0 deletions

View File

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

View File

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