Skip to content
Snippets Groups Projects
Commit 21614bec authored by Bob Mottram's avatar Bob Mottram
Browse files

Switch path during upgrades

parent 1ed1a4a5
No related branches found
No related tags found
No related merge requests found
......@@ -200,8 +200,10 @@ function upgrade_peertube {
function_check set_repo_commit
set_repo_commit $PEERTUBE_DIR "peertube commit" "$PEERTUBE_COMMIT" $PEERTUBE_REPO
alias npm-exec='PATH=$(npm bin):$PATH'
npm-exec npm run upgrade-peertube
PREV_PATH=$PATH
PATH=$(npm bin):$PATH
npm run upgrade-peertube
PATH=$PREV_PATH
chown -R peertube:peertube $PEERTUBE_DIR
systemctl start peertube
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment