From a9d7f9b593a5ea1046ebd40efb313bdc47e3a48e Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 7 Mar 2017 15:40:29 +0000 Subject: [PATCH] Create tahoelafs server file after running storage node --- src/freedombone-app-tahoelafs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/freedombone-app-tahoelafs b/src/freedombone-app-tahoelafs index c00569aa..4779f121 100755 --- a/src/freedombone-app-tahoelafs +++ b/src/freedombone-app-tahoelafs @@ -622,6 +622,10 @@ function install_tahoelafs { create_tahoelafs_stealth_node /home/tahoelafs/storage /home/tahoelafs/client ${node_nick} ${client_nick} + # start the storage node + su -c '/home/tahoelafs/tahoelafs/venv/bin/python2 /home/tahoelafs/tahoelafs/venv/bin/tahoe start /home/tahoelafs/storage' - tahoelafs + create_tahoelafs_daemon "storage" + add_tahoelafs_server "$(get_tahoelafs_storage_hostname)" "$(get_tahoelafs_public_key)" "${node_nick}" "$(get_tahoelafs_furl)" if ! grep -q "HidServAuth $(get_tahoelafs_storage_hostname)" /etc/tor/torrc; then echo $'Unable to create tahoelafs server' @@ -632,10 +636,6 @@ function install_tahoelafs { exit 529362 fi - # start the storage node - su -c '/home/tahoelafs/tahoelafs/venv/bin/python2 /home/tahoelafs/tahoelafs/venv/bin/tahoe start /home/tahoelafs/storage' - tahoelafs - create_tahoelafs_daemon "storage" - # start the client su -c '/home/tahoelafs/tahoelafs/venv/bin/python2 /home/tahoelafs/tahoelafs/venv/bin/tahoe start /home/tahoelafs/client' - tahoelafs create_tahoelafs_daemon "client"