Pārlūkot izejas kodu

Create tahoelafs server file after running storage node

Bob Mottram 8 gadus atpakaļ
vecāks
revīzija
a9d7f9b593
1 mainītis faili ar 4 papildinājumiem un 4 dzēšanām
  1. 4
    4
      src/freedombone-app-tahoelafs

+ 4
- 4
src/freedombone-app-tahoelafs Parādīt failu

622
 
622
 
623
     create_tahoelafs_stealth_node /home/tahoelafs/storage /home/tahoelafs/client ${node_nick} ${client_nick}
623
     create_tahoelafs_stealth_node /home/tahoelafs/storage /home/tahoelafs/client ${node_nick} ${client_nick}
624
 
624
 
625
+    # start the storage node
626
+    su -c '/home/tahoelafs/tahoelafs/venv/bin/python2 /home/tahoelafs/tahoelafs/venv/bin/tahoe start /home/tahoelafs/storage' - tahoelafs
627
+    create_tahoelafs_daemon "storage"
628
+
625
     add_tahoelafs_server "$(get_tahoelafs_storage_hostname)" "$(get_tahoelafs_public_key)" "${node_nick}" "$(get_tahoelafs_furl)"
629
     add_tahoelafs_server "$(get_tahoelafs_storage_hostname)" "$(get_tahoelafs_public_key)" "${node_nick}" "$(get_tahoelafs_furl)"
626
     if ! grep -q "HidServAuth $(get_tahoelafs_storage_hostname)" /etc/tor/torrc; then
630
     if ! grep -q "HidServAuth $(get_tahoelafs_storage_hostname)" /etc/tor/torrc; then
627
         echo $'Unable to create tahoelafs server'
631
         echo $'Unable to create tahoelafs server'
632
         exit 529362
636
         exit 529362
633
     fi
637
     fi
634
 
638
 
635
-    # start the storage node
636
-    su -c '/home/tahoelafs/tahoelafs/venv/bin/python2 /home/tahoelafs/tahoelafs/venv/bin/tahoe start /home/tahoelafs/storage' - tahoelafs
637
-    create_tahoelafs_daemon "storage"
638
-
639
     # start the client
639
     # start the client
640
     su -c '/home/tahoelafs/tahoelafs/venv/bin/python2 /home/tahoelafs/tahoelafs/venv/bin/tahoe start /home/tahoelafs/client' - tahoelafs
640
     su -c '/home/tahoelafs/tahoelafs/venv/bin/python2 /home/tahoelafs/tahoelafs/venv/bin/tahoe start /home/tahoelafs/client' - tahoelafs
641
     create_tahoelafs_daemon "client"
641
     create_tahoelafs_daemon "client"