]>
git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - scripts/upgrade.sh
59deae1ebf8658bcabd207967d5286bd6d92e5cd
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 pgrep peertube
> /dev
/null
; then
17 echo 'PeerTube is running!'
21 git pull origin
$(git rev-parse --abbrev-ref HEAD) || exit -1
25 cd client
&& npm update
&& cd ..
/
28 echo "\n\nUpgrade finished! You can restart PeerTube that may run the migration scripts."