Remove any existing tahoelafs install

This commit is contained in:
Bob Mottram 2017-06-10 15:11:22 +01:00
parent 822fd47d32
commit d9f3dbff03
1 changed files with 9 additions and 6 deletions

View File

@ -617,13 +617,16 @@ function install_tahoelafs {
apt-get -yq install build-essential python-pip python-dev libffi-dev libssl-dev
apt-get -yq install libcrypto++-dev python-pycryptopp python-cffi python-virtualenv
if [ -d $TAHOE_DIR ]; then
deluser --remove-all-files tahoelafs
delgroup tahoelafs
rm -rf $TAHOE_DIR
fi
# create a user
if [ ! -d $TAHOE_DIR ]; then
# add a gogs user account
adduser --disabled-login --gecos 'tahoe-lafs' tahoelafs
adduser tahoelafs debian-tor
groupadd tahoelafs
fi
apt-get -yq install tahoe-lafs
pip install tahoe-lafs[tor]