Browse Source

Check for server file

Bob Mottram 8 years ago
parent
commit
64aa7eb944
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      src/freedombone-app-tahoelafs

+ 4
- 0
src/freedombone-app-tahoelafs View File

622
         echo $'Unable to create tahoelafs server'
622
         echo $'Unable to create tahoelafs server'
623
         exit 738752
623
         exit 738752
624
     fi
624
     fi
625
+    if [ ! -f ${tahoelafs_storage_file} ]; then
626
+        echo $'tahoelafs server file missing'
627
+        exit 529362
628
+    fi
625
 
629
 
626
     # start the storage node
630
     # start the storage node
627
     su -c '/home/tahoelafs/tahoelafs/venv/bin/python2 /home/tahoelafs/tahoelafs/venv/bin/tahoe start /home/tahoelafs/storage' - tahoelafs
631
     su -c '/home/tahoelafs/tahoelafs/venv/bin/python2 /home/tahoelafs/tahoelafs/venv/bin/tahoe start /home/tahoelafs/storage' - tahoelafs