From 64aa7eb9444d12596a17ab19896254fb4b373c79 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 7 Mar 2017 14:59:17 +0000 Subject: [PATCH] Check for server file --- src/freedombone-app-tahoelafs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/freedombone-app-tahoelafs b/src/freedombone-app-tahoelafs index ed7d1684..fbf104bf 100755 --- a/src/freedombone-app-tahoelafs +++ b/src/freedombone-app-tahoelafs @@ -622,6 +622,10 @@ function install_tahoelafs { echo $'Unable to create tahoelafs server' exit 738752 fi + if [ ! -f ${tahoelafs_storage_file} ]; then + echo $'tahoelafs server file missing' + 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