Bob Mottram il y a 7 ans
Parent
révision
fcc87c9bf7
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2
    2
      src/freedombone-app-ipfs

+ 2
- 2
src/freedombone-app-ipfs Voir le fichier

@@ -369,7 +369,7 @@ function install_ipfs_js {
369 369
     systemctl restart ${IPFS_DAEMON_NAME}
370 370
 
371 371
     if [ -d /etc/avahi ]; then
372
-        su -c "echo $($IPFS_PATH/jsipfs id | grep '\"ID\":' | awk -F '\"' '{print $4}') > /tmp/ipfsid" - $MY_USERNAME
372
+        su -c "echo $($IPFS_PATH/jsipfs id | grep '\"ID\":' | awk -F '\"' '{print $4}') > /tmp/ipfsid" - "$MY_USERNAME"
373 373
         if [ ! -f /tmp/ipfsid ]; then
374 374
             echo 'No IPFS identity was created'
375 375
             exit 37895
@@ -586,7 +586,7 @@ function install_ipfs_go {
586 586
     systemctl restart ipfs
587 587
 
588 588
     if [ -d /etc/avahi ]; then
589
-        su -c "echo $($IPFS_PATH/ipfs id | grep '\"ID\":' | awk -F '\"' '{print $4}') > /tmp/ipfsid" - $MY_USERNAME
589
+        su -c "echo $("$IPFS_PATH/ipfs" id | grep '\"ID\":' | awk -F '\"' '{print $4}') > /tmp/ipfsid" - "$MY_USERNAME"
590 590
         if [ ! -f /tmp/ipfsid ]; then
591 591
             echo 'No IPFS identity was created'
592 592
             exit 37895