Switch path during upgrades
This commit is contained in:
parent
1ed1a4a56d
commit
21614bece9
|
@ -200,8 +200,10 @@ function upgrade_peertube {
|
||||||
function_check set_repo_commit
|
function_check set_repo_commit
|
||||||
set_repo_commit $PEERTUBE_DIR "peertube commit" "$PEERTUBE_COMMIT" $PEERTUBE_REPO
|
set_repo_commit $PEERTUBE_DIR "peertube commit" "$PEERTUBE_COMMIT" $PEERTUBE_REPO
|
||||||
|
|
||||||
alias npm-exec='PATH=$(npm bin):$PATH'
|
PREV_PATH=$PATH
|
||||||
npm-exec npm run upgrade-peertube
|
PATH=$(npm bin):$PATH
|
||||||
|
npm run upgrade-peertube
|
||||||
|
PATH=$PREV_PATH
|
||||||
|
|
||||||
chown -R peertube:peertube $PEERTUBE_DIR
|
chown -R peertube:peertube $PEERTUBE_DIR
|
||||||
systemctl start peertube
|
systemctl start peertube
|
||||||
|
|
Loading…
Reference in New Issue