diff --git a/src/freedombone-app-peertube b/src/freedombone-app-peertube index 63df5f57..56da2791 100755 --- a/src/freedombone-app-peertube +++ b/src/freedombone-app-peertube @@ -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 }