|
@@ -230,7 +230,7 @@ function install_tahoelafs_to_directory {
|
230
|
230
|
function create_tahoelafs_introducer {
|
231
|
231
|
introducer_dir="$1"
|
232
|
232
|
|
233
|
|
- if [ -d ${introducer_dir} ]; then
|
|
233
|
+ if [ -f ${introducer_dir}/tahoe.cfg ]; then
|
234
|
234
|
return
|
235
|
235
|
fi
|
236
|
236
|
|
|
@@ -247,7 +247,7 @@ function create_tahoelafs_storage_node {
|
247
|
247
|
return
|
248
|
248
|
fi
|
249
|
249
|
|
250
|
|
- if [ -d ${node_dir} ]; then
|
|
250
|
+ if [ -f ${node_dir}/tahoe.cfg ]; then
|
251
|
251
|
return
|
252
|
252
|
fi
|
253
|
253
|
|
|
@@ -264,7 +264,7 @@ function create_tahoelafs_client {
|
264
|
264
|
return
|
265
|
265
|
fi
|
266
|
266
|
|
267
|
|
- if [ -d ${client_dir} ]; then
|
|
267
|
+ if [ -f ${client_dir}/tahoe.cfg ]; then
|
268
|
268
|
return
|
269
|
269
|
fi
|
270
|
270
|
|
|
@@ -343,6 +343,7 @@ function install_tahoelafs {
|
343
|
343
|
create_tahoelafs_introducer /home/tahoelafs/introducer
|
344
|
344
|
TAHOELAFS_INTRODUCER_CONFIG=/home/tahoelafs/introducer/tahoe.cfg
|
345
|
345
|
if [ ! -f $TAHOELAFS_INTRODUCER_CONFIG ]; then
|
|
346
|
+ echo $'Unable to create introducer'
|
346
|
347
|
exit 62831
|
347
|
348
|
fi
|
348
|
349
|
|
|
@@ -352,6 +353,7 @@ function install_tahoelafs {
|
352
|
353
|
create_tahoelafs_storage_node /home/tahoelafs/storage "$(get_tahoelafs_introducer)"
|
353
|
354
|
TAHOELAFS_STORAGE_CONFIG=/home/tahoelafs/storage/tahoe.cfg
|
354
|
355
|
if [ ! -f $TAHOELAFS_STORAGE_CONFIG ]; then
|
|
356
|
+ echo $'Unable to create storage node'
|
355
|
357
|
exit 782523
|
356
|
358
|
fi
|
357
|
359
|
|
|
@@ -364,7 +366,7 @@ function install_tahoelafs {
|
364
|
366
|
TAHOELAFS_INTRODUCER=/home/tahoelafs/introducer/tahoe-introducer.tac
|
365
|
367
|
if [ ! -f $TAHOELAFS_INTRODUCER ]; then
|
366
|
368
|
echo $'Introducer file not found'
|
367
|
|
- exit 782253
|
|
369
|
+ exit 9654845
|
368
|
370
|
fi
|
369
|
371
|
|
370
|
372
|
# start the storage node
|