瀏覽代碼

Reintroduce tahoe-lafs

Bob Mottram 8 年之前
父節點
當前提交
06159ffdf3
共有 1 個檔案被更改,包括 12 行新增4 行删除
  1. 12
    4
      src/freedombone-app-tahoelafs

+ 12
- 4
src/freedombone-app-tahoelafs 查看文件

28
 # You should have received a copy of the GNU Affero General Public License
28
 # You should have received a copy of the GNU Affero General Public License
29
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
29
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
30
 
30
 
31
-VARIANTS=''
31
+VARIANTS='full full-vim cloud'
32
 
32
 
33
 IN_DEFAULT_INSTALL=0
33
 IN_DEFAULT_INSTALL=0
34
 SHOW_ON_ABOUT=1
34
 SHOW_ON_ABOUT=1
35
 
35
 
36
 TAHOELAFS_REPO="https://github.com/tahoe-lafs/tahoe-lafs"
36
 TAHOELAFS_REPO="https://github.com/tahoe-lafs/tahoe-lafs"
37
-TAHOELAFS_COMMIT='30b421d48b3d1dae2ef507bf27a1f3816300cd92'
37
+TAHOELAFS_COMMIT='bb782b0331a60de438136a593bba18338d8d866b'
38
 
38
 
39
 TAHOELAFS_PORT=50213
39
 TAHOELAFS_PORT=50213
40
 TAHOELAFS_WEB_PORT=3456
40
 TAHOELAFS_WEB_PORT=3456
115
 }
115
 }
116
 
116
 
117
 function upgrade_tahoelafs {
117
 function upgrade_tahoelafs {
118
-    echo -n ''
119
-    # TODO
118
+    systemctl stop tahoelafs
119
+    function_check set_repo_commit
120
+    set_repo_commit /home/tahoelafs/tahoelafs "tahoelafs commit" "$TAHOELAFS_COMMIT" $TAHOELAFS_REPO
121
+    cd /home/tahoelafs/tahoelafs
122
+    virtualenv venv
123
+    venv/bin/pip install --editable .
124
+    systemctl start tahoelafs
120
 }
125
 }
121
 
126
 
122
 function backup_local_tahoelafs {
127
 function backup_local_tahoelafs {
343
     systemctl enable tahoelafs
348
     systemctl enable tahoelafs
344
     systemctl daemon-reload
349
     systemctl daemon-reload
345
     systemctl start tahoelafs
350
     systemctl start tahoelafs
351
+
352
+    set_completion_param "tahoelafs commit" "$TAHOELAFS_COMMIT"
353
+
346
     APP_INSTALLED=1
354
     APP_INSTALLED=1
347
 }
355
 }
348
 
356