Explorar el Código

Create tahoelafs server file after running storage node

Bob Mottram hace 8 años
padre
commit
a9d7f9b593
Se han modificado 1 ficheros con 4 adiciones y 4 borrados
  1. 4
    4
      src/freedombone-app-tahoelafs

+ 4
- 4
src/freedombone-app-tahoelafs Ver fichero

@@ -622,6 +622,10 @@ function install_tahoelafs {
622 622
 
623 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 629
     add_tahoelafs_server "$(get_tahoelafs_storage_hostname)" "$(get_tahoelafs_public_key)" "${node_nick}" "$(get_tahoelafs_furl)"
626 630
     if ! grep -q "HidServAuth $(get_tahoelafs_storage_hostname)" /etc/tor/torrc; then
627 631
         echo $'Unable to create tahoelafs server'
@@ -632,10 +636,6 @@ function install_tahoelafs {
632 636
         exit 529362
633 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 639
     # start the client
640 640
     su -c '/home/tahoelafs/tahoelafs/venv/bin/python2 /home/tahoelafs/tahoelafs/venv/bin/tahoe start /home/tahoelafs/client' - tahoelafs
641 641
     create_tahoelafs_daemon "client"