From 5f45cb66b7527be7868518aa67653f30ecb7716c Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 1 Jun 2018 10:52:45 +0100 Subject: [PATCH] Upgrade script for peertube --- src/freedombone-app-peertube | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 }