Upgrade script for peertube

This commit is contained in:
Bob Mottram 2018-06-01 10:52:45 +01:00
parent 2b92faa50f
commit 5f45cb66b7
1 changed files with 3 additions and 1 deletions

View File

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