aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/upgrade.sh
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-06-25 16:30:45 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-06-25 16:30:45 +0200
commit4f133041819409a72cf70fa2fa6c4df14c6de4fd (patch)
tree48392491b4f4521225a9d0c240cb1f3f73283607 /scripts/upgrade.sh
parent945075ad45d4f226bb368c21d8f50abf2479d73b (diff)
downloadPeerTube-4f133041819409a72cf70fa2fa6c4df14c6de4fd.tar.gz
PeerTube-4f133041819409a72cf70fa2fa6c4df14c6de4fd.tar.zst
PeerTube-4f133041819409a72cf70fa2fa6c4df14c6de4fd.zip
Rename 'npm run upgrade' to 'npm run upgrade-peertube'
It was confusing with the command 'npm run update'
Diffstat (limited to 'scripts/upgrade.sh')
-rwxr-xr-xscripts/upgrade.sh31
1 files changed, 0 insertions, 31 deletions
diff --git a/scripts/upgrade.sh b/scripts/upgrade.sh
deleted file mode 100755
index ff6dce94f..000000000
--- a/scripts/upgrade.sh
+++ /dev/null
@@ -1,31 +0,0 @@
1#!/bin/bash
2
3nodeMinVersion="v6.0.0"
4npmMinVersion="3.0.0"
5
6if [[ $(node --version) < $nodeMinVersion ]]; then
7 echo 'You need node >= 6'
8 exit 0
9fi
10
11if [[ $(npm --version) < $npmMinVersion ]]; then
12 echo 'You need npm >= 3'
13 exit 0
14fi
15
16if ! which yarn > /dev/null; then
17 echo 'You need yarn'
18 exit 0
19fi
20
21if pgrep peertube > /dev/null; then
22 echo 'PeerTube is running!'
23 exit 0
24fi
25
26git pull origin $(git rev-parse --abbrev-ref HEAD) || exit -1
27
28yarn install --pure-lockfile
29npm run build
30
31echo "\n\nUpgrade finished! You can restart PeerTube that may run the migration scripts."