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