Probably don't need introducer

This commit is contained in:
Bob Mottram 2016-08-28 11:56:24 +01:00
parent 98bdf8eb7c
commit 488b4c3a8c
1 changed files with 0 additions and 10 deletions

View File

@ -43,9 +43,6 @@ function reconfigure_tahoelafs {
su -c 'tahoe stop' - $USERNAME su -c 'tahoe stop' - $USERNAME
rm -rf /home/$USERNAME/.tahoe rm -rf /home/$USERNAME/.tahoe
fi fi
if [ -d /home/$USERNAME/.tahoe-introducer ]; then
rm -rf /home/$USERNAME/.tahoe-introducer
fi
if [ -d /home/$USERNAME/${TAHOELAFS_SHARED_DIR} ]; then if [ -d /home/$USERNAME/${TAHOELAFS_SHARED_DIR} ]; then
rm -rf /home/$USERNAME/${TAHOELAFS_SHARED_DIR} rm -rf /home/$USERNAME/${TAHOELAFS_SHARED_DIR}
@ -57,12 +54,6 @@ function reconfigure_tahoelafs {
exit 63722 exit 63722
fi fi
su -c 'tahoe create-introducer ~/.tahoe-introducer' - $USERNAME
if [ ! -d /home/$USERNAME/.tahoe-introducer ]; then
exit 365272
fi
# create a shared directory # create a shared directory
if [ ! -d /home/$USERNAME/${TAHOELAFS_SHARED_DIR} ]; then if [ ! -d /home/$USERNAME/${TAHOELAFS_SHARED_DIR} ]; then
mkdir /home/$USERNAME/${TAHOELAFS_SHARED_DIR} mkdir /home/$USERNAME/${TAHOELAFS_SHARED_DIR}
@ -101,7 +92,6 @@ function reconfigure_tahoelafs {
echo "local.directory = ~/${TAHOELAFS_SHARED_DIR}" >> $TAHOELAFS_CONFIG echo "local.directory = ~/${TAHOELAFS_SHARED_DIR}" >> $TAHOELAFS_CONFIG
chown $USERNAME:$USERNAME $TAHOELAFS_CONFIG chown $USERNAME:$USERNAME $TAHOELAFS_CONFIG
su -c 'tahoe start ~/.tahoe-introducer' - $USERNAME
su -c 'tahoe start' - $USERNAME su -c 'tahoe start' - $USERNAME
fi fi
done done