Sfoglia il codice sorgente

Move ipfs users to tmp

Bob Mottram 8 anni fa
parent
commit
47f92b8365
No account linked to committer's email

+ 1
- 1
src/freedombone-image-customise Vedi File

779
     chmod +x /home/$MY_USERNAME/Desktop/Users.desktop
779
     chmod +x /home/$MY_USERNAME/Desktop/Users.desktop
780
     chown $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/Desktop/Users.desktop
780
     chown $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/Desktop/Users.desktop
781
 
781
 
782
-    if [ -f /home/$MY_USERNAME/.ipfs-users ]; then
782
+    if [ -f /tmp/.ipfs-users ]; then
783
         echo '[Desktop Entry]' > /home/$MY_USERNAME/Desktop/sites.desktop
783
         echo '[Desktop Entry]' > /home/$MY_USERNAME/Desktop/sites.desktop
784
         echo 'Type=Application' >> /home/$MY_USERNAME/Desktop/sites.desktop
784
         echo 'Type=Application' >> /home/$MY_USERNAME/Desktop/sites.desktop
785
         echo "Name=Visit a site" >> /home/$MY_USERNAME/Desktop/sites.desktop
785
         echo "Name=Visit a site" >> /home/$MY_USERNAME/Desktop/sites.desktop

+ 0
- 4
src/freedombone-image-mesh Vedi File

482
         shred -zu /home/$MY_USERNAME/.ipfs-public
482
         shred -zu /home/$MY_USERNAME/.ipfs-public
483
     fi
483
     fi
484
 
484
 
485
-    if [ -f /home/$MY_USERNAME/.ipfs-users ]; then
486
-        shred -zu /home/$MY_USERNAME/.ipfs-users
487
-    fi
488
-
489
     su -c "$IPFS_COMMAND init -b $IPFS_KEY_LENGTH" - $MY_USERNAME
485
     su -c "$IPFS_COMMAND init -b $IPFS_KEY_LENGTH" - $MY_USERNAME
490
     if [ ! -d /home/$MY_USERNAME/.ipfs ]; then
486
     if [ ! -d /home/$MY_USERNAME/.ipfs ]; then
491
         echo "IPFS could not be initialised for user $MY_USERNAME" >> $INSTALL_LOG
487
         echo "IPFS could not be initialised for user $MY_USERNAME" >> $INSTALL_LOG

+ 1
- 1
src/freedombone-mesh-visit-site Vedi File

40
 # An optional suffix to be appended to the URL
40
 # An optional suffix to be appended to the URL
41
 SUFFIX=$1
41
 SUFFIX=$1
42
 
42
 
43
-IPFS_USERS_FILE=/home/$USER/.ipfs-users
43
+IPFS_USERS_FILE=/tmp/.ipfs-users
44
 if [ ! -f $IPFS_USERS_FILE ]; then
44
 if [ ! -f $IPFS_USERS_FILE ]; then
45
     exit 0
45
     exit 0
46
 fi
46
 fi

+ 1
- 1
src/meshavahi Vedi File

39
 IPFS_PORT=4001
39
 IPFS_PORT=4001
40
 IPFS_PATH=/usr/bin
40
 IPFS_PATH=/usr/bin
41
 IPFS_COMMAND=$IPFS_PATH/ipfs
41
 IPFS_COMMAND=$IPFS_PATH/ipfs
42
-IPFS_USERS_FILE=/home/$MY_USERNAME/.ipfs-users
42
+IPFS_USERS_FILE=/tmp/.ipfs-users
43
 IPFS_PUBLIC=/home/$MY_USERNAME/.ipfs-public
43
 IPFS_PUBLIC=/home/$MY_USERNAME/.ipfs-public
44
 
44
 
45
 # contains the output of the avahi command
45
 # contains the output of the avahi command