소스 검색

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