From c9e1bf34e3a8e1c4d8b5ca6a9c024834061d5375 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 10 Jun 2017 18:28:47 +0100 Subject: [PATCH] Check that the tahoelafs home directory gets created --- src/freedombone-app-tahoelafs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/freedombone-app-tahoelafs b/src/freedombone-app-tahoelafs index 117190d6..36586410 100755 --- a/src/freedombone-app-tahoelafs +++ b/src/freedombone-app-tahoelafs @@ -627,6 +627,12 @@ function install_tahoelafs { # create a user adduser --disabled-login --gecos 'tahoe-lafs' tahoelafs + + if [ ! -d /home/tahoelafs ]; then + echo $'/home/tahoelafs directory was not created' + exit 879335 + fi + adduser tahoelafs debian-tor groupadd tahoelafs