aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/upgrade.sh11
1 files changed, 8 insertions, 3 deletions
diff --git a/scripts/upgrade.sh b/scripts/upgrade.sh
index 59deae1eb..f974d68e0 100755
--- a/scripts/upgrade.sh
+++ b/scripts/upgrade.sh
@@ -13,6 +13,11 @@ if [[ $(npm --version) < $npmMinVersion ]]; then
13 exit 0 13 exit 0
14fi 14fi
15 15
16if ! which yarn > /dev/null; then
17 echo 'You need yarn'
18 exit 0
19fi
20
16if pgrep peertube > /dev/null; then 21if pgrep peertube > /dev/null; then
17 echo 'PeerTube is running!' 22 echo 'PeerTube is running!'
18 exit 0 23 exit 0
@@ -20,9 +25,9 @@ fi
20 25
21git pull origin $(git rev-parse --abbrev-ref HEAD) || exit -1 26git pull origin $(git rev-parse --abbrev-ref HEAD) || exit -1
22 27
23npm install 28yarn install
24npm update 29yarn update
25cd client && npm update && cd ../ 30cd client && yarn update && cd ../
26npm run build 31npm run build
27 32
28echo "\n\nUpgrade finished! You can restart PeerTube that may run the migration scripts." 33echo "\n\nUpgrade finished! You can restart PeerTube that may run the migration scripts."