Sfoglia il codice sorgente

Upgrade script for peertube

Bob Mottram 7 anni fa
parent
commit
5f45cb66b7
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3
    1
      src/freedombone-app-peertube

+ 3
- 1
src/freedombone-app-peertube Vedi File

@@ -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
 }