From 06159ffdf3a253884dbc40c608b7a9765407881e Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 3 Mar 2017 18:48:33 +0000 Subject: [PATCH] Reintroduce tahoe-lafs --- src/freedombone-app-tahoelafs | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/freedombone-app-tahoelafs b/src/freedombone-app-tahoelafs index f41700d0..fe8e406d 100755 --- a/src/freedombone-app-tahoelafs +++ b/src/freedombone-app-tahoelafs @@ -28,13 +28,13 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . -VARIANTS='' +VARIANTS='full full-vim cloud' IN_DEFAULT_INSTALL=0 SHOW_ON_ABOUT=1 TAHOELAFS_REPO="https://github.com/tahoe-lafs/tahoe-lafs" -TAHOELAFS_COMMIT='30b421d48b3d1dae2ef507bf27a1f3816300cd92' +TAHOELAFS_COMMIT='bb782b0331a60de438136a593bba18338d8d866b' TAHOELAFS_PORT=50213 TAHOELAFS_WEB_PORT=3456 @@ -115,8 +115,13 @@ function reconfigure_tahoelafs { } function upgrade_tahoelafs { - echo -n '' - # TODO + systemctl stop tahoelafs + function_check set_repo_commit + set_repo_commit /home/tahoelafs/tahoelafs "tahoelafs commit" "$TAHOELAFS_COMMIT" $TAHOELAFS_REPO + cd /home/tahoelafs/tahoelafs + virtualenv venv + venv/bin/pip install --editable . + systemctl start tahoelafs } function backup_local_tahoelafs { @@ -343,6 +348,9 @@ function install_tahoelafs { systemctl enable tahoelafs systemctl daemon-reload systemctl start tahoelafs + + set_completion_param "tahoelafs commit" "$TAHOELAFS_COMMIT" + APP_INSTALLED=1 }