Skip to content
Snippets Groups Projects
Commit 6384897e authored by Bob Mottram's avatar Bob Mottram
Browse files

Ensure that the ipfs command is executable

parent 8e25f1fa
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment