瀏覽代碼

Check that the tahoelafs home directory gets created

Bob Mottram 7 年之前
父節點
當前提交
c9e1bf34e3
共有 1 個檔案被更改,包括 6 行新增0 行删除
  1. 6
    0
      src/freedombone-app-tahoelafs

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

@@ -627,6 +627,12 @@ function install_tahoelafs {
627 627
 
628 628
     # create a user
629 629
     adduser --disabled-login --gecos 'tahoe-lafs' tahoelafs
630
+
631
+    if [ ! -d /home/tahoelafs ]; then
632
+        echo $'/home/tahoelafs directory was not created'
633
+        exit 879335
634
+    fi
635
+
630 636
     adduser tahoelafs debian-tor
631 637
     groupadd tahoelafs
632 638