浏览代码

Check for server file

Bob Mottram 8 年前
父节点
当前提交
64aa7eb944
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4
    0
      src/freedombone-app-tahoelafs

+ 4
- 0
src/freedombone-app-tahoelafs 查看文件

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