瀏覽代碼

Upgrade script for peertube

Bob Mottram 6 年之前
父節點
當前提交
5f45cb66b7
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. 3
    1
      src/freedombone-app-peertube

+ 3
- 1
src/freedombone-app-peertube 查看文件

@@ -434,7 +434,9 @@ function upgrade_peertube {
434 434
     function_check set_repo_commit
435 435
     set_repo_commit $PEERTUBE_DIR "peertube commit" "$PEERTUBE_COMMIT" $PEERTUBE_REPO
436 436
 
437
-    npm run upgrade-peertube
437
+    cd "$PEERTUBE_DIR/scripts" || exit 7824552627
438
+    sudo -u peertube ./upgrade.sh $PEERTUBE_DIR
439
+
438 440
     chown -R peertube:peertube $PEERTUBE_DIR
439 441
     systemctl start peertube
440 442
 }