Create tahoelafs server file after running storage node

This commit is contained in:
Bob Mottram 2017-03-07 15:40:29 +00:00
parent 0db2ec2481
commit a9d7f9b593
1 changed files with 4 additions and 4 deletions

View File

@ -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"