Explorar el Código

Check that the tahoelafs home directory gets created

Bob Mottram hace 8 años
padre
commit
c9e1bf34e3
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  1. 6
    0
      src/freedombone-app-tahoelafs

+ 6
- 0
src/freedombone-app-tahoelafs Ver fichero

@@ -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