Remove any existing tahoelafs install
This commit is contained in:
parent
822fd47d32
commit
d9f3dbff03
|
@ -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 build-essential python-pip python-dev libffi-dev libssl-dev
|
||||||
apt-get -yq install libcrypto++-dev python-pycryptopp python-cffi python-virtualenv
|
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
|
# create a user
|
||||||
if [ ! -d $TAHOE_DIR ]; then
|
|
||||||
# add a gogs user account
|
|
||||||
adduser --disabled-login --gecos 'tahoe-lafs' tahoelafs
|
adduser --disabled-login --gecos 'tahoe-lafs' tahoelafs
|
||||||
adduser tahoelafs debian-tor
|
adduser tahoelafs debian-tor
|
||||||
groupadd tahoelafs
|
groupadd tahoelafs
|
||||||
fi
|
|
||||||
|
|
||||||
apt-get -yq install tahoe-lafs
|
apt-get -yq install tahoe-lafs
|
||||||
pip install tahoe-lafs[tor]
|
pip install tahoe-lafs[tor]
|
||||||
|
|
Loading…
Reference in New Issue