Check that the tahoelafs home directory gets created

This commit is contained in:
Bob Mottram 2017-06-10 18:28:47 +01:00
parent bfd2a37f63
commit c9e1bf34e3
1 changed files with 6 additions and 0 deletions

View File

@ -627,6 +627,12 @@ function install_tahoelafs {
# create a user # create a user
adduser --disabled-login --gecos 'tahoe-lafs' tahoelafs 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 adduser tahoelafs debian-tor
groupadd tahoelafs groupadd tahoelafs