Switching paths
This commit is contained in:
parent
0f13d6b12d
commit
1ed1a4a56d
|
@ -777,12 +777,15 @@ function install_peertube {
|
||||||
echo $'Failed to install local npm version 5.6.0'
|
echo $'Failed to install local npm version 5.6.0'
|
||||||
exit 45465774
|
exit 45465774
|
||||||
fi
|
fi
|
||||||
|
PREV_PATH=$PATH
|
||||||
PATH=$(npm bin):$PATH
|
PATH=$(npm bin):$PATH
|
||||||
npm install node@9.5.0
|
npm install node@9.5.0
|
||||||
if [ ! "$?" = "0" ]; then
|
if [ ! "$?" = "0" ]; then
|
||||||
|
PATH=$PREV_PATH
|
||||||
echo $'Failed to install local nodejs version 9.5.0'
|
echo $'Failed to install local nodejs version 9.5.0'
|
||||||
exit 54875459
|
exit 54875459
|
||||||
fi
|
fi
|
||||||
|
PATH=$PREV_PATH
|
||||||
npm install npm@5.6.0
|
npm install npm@5.6.0
|
||||||
if [ ! "$?" = "0" ]; then
|
if [ ! "$?" = "0" ]; then
|
||||||
echo $'Failed to install local npm version 5.6.0'
|
echo $'Failed to install local npm version 5.6.0'
|
||||||
|
@ -793,6 +796,7 @@ function install_peertube {
|
||||||
echo $'Failed to install yarn'
|
echo $'Failed to install yarn'
|
||||||
exit 578947946
|
exit 578947946
|
||||||
fi
|
fi
|
||||||
|
PATH=$(npm bin):$PATH
|
||||||
yarn add -D webpack --network-concurrency 1
|
yarn add -D webpack --network-concurrency 1
|
||||||
#yarn install --non-interactive
|
#yarn install --non-interactive
|
||||||
#if [ ! "$?" = "0" ]; then
|
#if [ ! "$?" = "0" ]; then
|
||||||
|
@ -801,14 +805,17 @@ function install_peertube {
|
||||||
#fi
|
#fi
|
||||||
npm install
|
npm install
|
||||||
if [ ! "$?" = "0" ]; then
|
if [ ! "$?" = "0" ]; then
|
||||||
|
PATH=$PREV_PATH
|
||||||
echo $'Failed to install peertube'
|
echo $'Failed to install peertube'
|
||||||
exit 7835243
|
exit 7835243
|
||||||
fi
|
fi
|
||||||
npm run build
|
npm run build
|
||||||
if [ ! "$?" = "0" ]; then
|
if [ ! "$?" = "0" ]; then
|
||||||
|
PATH=$PREV_PATH
|
||||||
echo $'Failed to build peertube'
|
echo $'Failed to build peertube'
|
||||||
exit 5293593
|
exit 5293593
|
||||||
fi
|
fi
|
||||||
|
PATH=$PREV_PATH
|
||||||
|
|
||||||
PEERTUBE_ONION_HOSTNAME=$(add_onion_service peertube 80 ${PEERTUBE_ONION_PORT})
|
PEERTUBE_ONION_HOSTNAME=$(add_onion_service peertube 80 ${PEERTUBE_ONION_PORT})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue