diff --git a/src/freedombone-app-ipfs b/src/freedombone-app-ipfs index d5859ae0..fca4cbfc 100755 --- a/src/freedombone-app-ipfs +++ b/src/freedombone-app-ipfs @@ -369,7 +369,7 @@ function install_ipfs_js { systemctl restart ${IPFS_DAEMON_NAME} if [ -d /etc/avahi ]; then - su -c "echo $($IPFS_PATH/jsipfs id | grep '\"ID\":' | awk -F '\"' '{print $4}') > /tmp/ipfsid" - $MY_USERNAME + su -c "echo $($IPFS_PATH/jsipfs id | grep '\"ID\":' | awk -F '\"' '{print $4}') > /tmp/ipfsid" - "$MY_USERNAME" if [ ! -f /tmp/ipfsid ]; then echo 'No IPFS identity was created' exit 37895 @@ -586,7 +586,7 @@ function install_ipfs_go { systemctl restart ipfs if [ -d /etc/avahi ]; then - su -c "echo $($IPFS_PATH/ipfs id | grep '\"ID\":' | awk -F '\"' '{print $4}') > /tmp/ipfsid" - $MY_USERNAME + su -c "echo $("$IPFS_PATH/ipfs" id | grep '\"ID\":' | awk -F '\"' '{print $4}') > /tmp/ipfsid" - "$MY_USERNAME" if [ ! -f /tmp/ipfsid ]; then echo 'No IPFS identity was created' exit 37895