Remove any existing tahoelafs install
This commit is contained in:
parent
822fd47d32
commit
d9f3dbff03
|
@ -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]
|
||||
|
||||
|
|
Loading…
Reference in New Issue