|
|
@@ -372,7 +372,8 @@ function remove_tahoelafs {
|
|
372
|
372
|
remove_onion_service tahoelafs ${TAHOELAFS_ONION_PORT}
|
|
373
|
373
|
remove_onion_service storage-tahoelafs ${TAHOELAFS_STORAGE_ONION_PORT} $(get_tahoelafs_nick)
|
|
374
|
374
|
sed -i '/HidServAuth /d' /etc/tor/torrc
|
|
375
|
|
- deluser tahoelafs
|
|
|
375
|
+ deluser --remove-all-files tahoelafs
|
|
|
376
|
+ delgroup tahoelafs
|
|
376
|
377
|
if [ -d $TAHOE_DIR ]; then
|
|
377
|
378
|
rm -rf $TAHOE_DIR
|
|
378
|
379
|
fi
|
|
|
@@ -616,16 +617,17 @@ function install_tahoelafs {
|
|
616
|
617
|
|
|
617
|
618
|
apt-get -yq install build-essential python-pip python-dev libffi-dev libssl-dev
|
|
618
|
619
|
apt-get -yq install libcrypto++-dev python-pycryptopp python-cffi python-virtualenv
|
|
619
|
|
- apt-get -yq install tahoe-lafs
|
|
620
|
|
- pip install tahoe-lafs[tor]
|
|
621
|
|
-
|
|
622
|
620
|
# create a user
|
|
623
|
621
|
if [ ! -d $TAHOE_DIR ]; then
|
|
624
|
622
|
# add a gogs user account
|
|
625
|
623
|
adduser --disabled-login --gecos 'tahoe-lafs' tahoelafs
|
|
626
|
624
|
adduser tahoelafs debian-tor
|
|
|
625
|
+ groupadd tahoelafs
|
|
627
|
626
|
fi
|
|
628
|
627
|
|
|
|
628
|
+ apt-get -yq install tahoe-lafs
|
|
|
629
|
+ pip install tahoe-lafs[tor]
|
|
|
630
|
+
|
|
629
|
631
|
if [ -d $TAHOE_DIR/Maildir ]; then
|
|
630
|
632
|
rm -rf $TAHOE_DIR/Maildir
|
|
631
|
633
|
fi
|