Create server file after start
This commit is contained in:
parent
a9d7f9b593
commit
848244634d
|
@ -626,6 +626,8 @@ function install_tahoelafs {
|
|||
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
|
||||
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'
|
||||
|
@ -635,9 +637,6 @@ function install_tahoelafs {
|
|||
echo $'tahoelafs server file missing'
|
||||
exit 529362
|
||||
fi
|
||||
|
||||
# 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"
|
||||
|
||||
set_completion_param "tahoelafs commit" "$TAHOELAFS_COMMIT"
|
||||
|
|
Loading…
Reference in New Issue