From d9f3dbff03380577850781ac60454e7bab968101 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 10 Jun 2017 15:11:22 +0100 Subject: [PATCH] Remove any existing tahoelafs install --- src/freedombone-app-tahoelafs | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/freedombone-app-tahoelafs b/src/freedombone-app-tahoelafs index 4dde68a4..ec357241 100755 --- a/src/freedombone-app-tahoelafs +++ b/src/freedombone-app-tahoelafs @@ -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]