Parcourir la source

Create server file after start

Bob Mottram il y a 8 ans
Parent
révision
848244634d
1 fichiers modifiés avec 2 ajouts et 3 suppressions
  1. 2
    3
      src/freedombone-app-tahoelafs

+ 2
- 3
src/freedombone-app-tahoelafs Voir le fichier

626
     su -c '/home/tahoelafs/tahoelafs/venv/bin/python2 /home/tahoelafs/tahoelafs/venv/bin/tahoe start /home/tahoelafs/storage' - tahoelafs
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"
627
     create_tahoelafs_daemon "storage"
628
 
628
 
629
+    # start the client
630
+    su -c '/home/tahoelafs/tahoelafs/venv/bin/python2 /home/tahoelafs/tahoelafs/venv/bin/tahoe start /home/tahoelafs/client' - tahoelafs
629
     add_tahoelafs_server "$(get_tahoelafs_storage_hostname)" "$(get_tahoelafs_public_key)" "${node_nick}" "$(get_tahoelafs_furl)"
631
     add_tahoelafs_server "$(get_tahoelafs_storage_hostname)" "$(get_tahoelafs_public_key)" "${node_nick}" "$(get_tahoelafs_furl)"
630
     if ! grep -q "HidServAuth $(get_tahoelafs_storage_hostname)" /etc/tor/torrc; then
632
     if ! grep -q "HidServAuth $(get_tahoelafs_storage_hostname)" /etc/tor/torrc; then
631
         echo $'Unable to create tahoelafs server'
633
         echo $'Unable to create tahoelafs server'
635
         echo $'tahoelafs server file missing'
637
         echo $'tahoelafs server file missing'
636
         exit 529362
638
         exit 529362
637
     fi
639
     fi
638
-
639
-    # start the client
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"
640
     create_tahoelafs_daemon "client"
642
 
641
 
643
     set_completion_param "tahoelafs commit" "$TAHOELAFS_COMMIT"
642
     set_completion_param "tahoelafs commit" "$TAHOELAFS_COMMIT"