3 nodeMinVersion="v6.0.0"
6 if [[ $(node --version) < $nodeMinVersion ]]; then
7 echo 'You need node >= 6'
11 if [[ $(npm --version) < $npmMinVersion ]]; then
12 echo 'You need npm >= 3'
16 if ! which yarn > /dev/null; then
21 if pgrep peertube > /dev/null; then
22 echo 'PeerTube is running!'
26 git pull origin $(git rev-parse --abbrev-ref HEAD) || exit -1
28 yarn install --pure-lockfile
31 echo "\n\nUpgrade finished! You can restart PeerTube that may run the migration scripts."