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,14 +617,17 @@ 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
# 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
if [ -d $TAHOE_DIR ]; then
deluser --remove-all-files tahoelafs
delgroup tahoelafs
rm -rf $TAHOE_DIR
fi
# create a user
adduser --disabled-login --gecos 'tahoe-lafs' tahoelafs
adduser tahoelafs debian-tor
groupadd tahoelafs
apt-get -yq install tahoe-lafs
pip install tahoe-lafs[tor]