Ensure that the ipfs command is executable
This commit is contained in:
parent
8e25f1fada
commit
6384897ecc
|
@ -539,6 +539,7 @@ function install_ipfs_go {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# initialise
|
# initialise
|
||||||
|
chmod +x $IPFS_PATH/ipfs
|
||||||
su -c "$IPFS_PATH/ipfs init -b 2048" - $MY_USERNAME
|
su -c "$IPFS_PATH/ipfs init -b 2048" - $MY_USERNAME
|
||||||
if [ ! -d /home/$MY_USERNAME/.ipfs ]; then
|
if [ ! -d /home/$MY_USERNAME/.ipfs ]; then
|
||||||
echo "IPFS could not be initialised for user $MY_USERNAME"
|
echo "IPFS could not be initialised for user $MY_USERNAME"
|
||||||
|
|
|
@ -1033,6 +1033,7 @@ function setup_ipfs {
|
||||||
shred -zu /home/$MY_USERNAME/.ipfs-public
|
shred -zu /home/$MY_USERNAME/.ipfs-public
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
chmod +x $IPFS_COMMAND
|
||||||
su -c "$IPFS_COMMAND init -b $IPFS_KEY_LENGTH" - $MY_USERNAME
|
su -c "$IPFS_COMMAND init -b $IPFS_KEY_LENGTH" - $MY_USERNAME
|
||||||
if [ ! -d /home/$MY_USERNAME/.ipfs ]; then
|
if [ ! -d /home/$MY_USERNAME/.ipfs ]; then
|
||||||
echo "IPFS could not be initialised for user $MY_USERNAME" >> $INSTALL_LOG
|
echo "IPFS could not be initialised for user $MY_USERNAME" >> $INSTALL_LOG
|
||||||
|
|
Loading…
Reference in New Issue