This commit is contained in:
Bob Mottram 2018-03-02 19:52:07 +00:00
parent 02627accb1
commit fcc87c9bf7
1 changed files with 2 additions and 2 deletions

View File

@ -369,7 +369,7 @@ function install_ipfs_js {
systemctl restart ${IPFS_DAEMON_NAME} systemctl restart ${IPFS_DAEMON_NAME}
if [ -d /etc/avahi ]; then 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 if [ ! -f /tmp/ipfsid ]; then
echo 'No IPFS identity was created' echo 'No IPFS identity was created'
exit 37895 exit 37895
@ -586,7 +586,7 @@ function install_ipfs_go {
systemctl restart ipfs systemctl restart ipfs
if [ -d /etc/avahi ]; then 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 if [ ! -f /tmp/ipfsid ]; then
echo 'No IPFS identity was created' echo 'No IPFS identity was created'
exit 37895 exit 37895