ActivityPub-federated video streaming platform using P2P directly in your web browser
Remove Node 4 support
Chocobozzz85ec3eb7f37d
diff --git a/.travis.yml b/.travis.ymlindex 76efedd50d..068067796a 100644--- a/.travis.yml+++ b/.travis.yml@@ -1,7 +1,6 @@language: node_jsnode_js:- - "4"- "6"env:diff --git a/README.md b/README.mdindex 750522dd69..6e54e5bdb6 100644--- a/README.md+++ b/README.md@@ -121,7 +121,7 @@ See [wiki](https://github.com/Chocobozzz/PeerTube/wiki) for complete installatio### Dependencies- * **NodeJS >= 4.x**+ * **NodeJS >= 6.x*** **npm >= 3.x*** OpenSSL (cli)* PostgreSQL@@ -129,13 +129,12 @@ See [wiki](https://github.com/Chocobozzz/PeerTube/wiki) for complete installatio#### Debian- * Install NodeJS 4.x (actual LTS): [https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions](https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions)+ * Install NodeJS 6.x (actual LTS): [https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions](https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions)* Add jessie backports to your *source.list*: http://backports.debian.org/Instructions/* Run:# apt-get update# apt-get install ffmpeg postgresql-9.4 openssl- # npm install -g npm@3#### Other distribution... (PR welcome)diff --git a/scripts/upgrade.sh b/scripts/upgrade.shindex 022e76107d..59deae1ebf 100755--- a/scripts/upgrade.sh+++ b/scripts/upgrade.sh@@ -1,13 +1,25 @@#!/usr/bin/env sh+nodeMinVersion="v6.0.0"+npmMinVersion="3.0.0"-git pull origin $(git rev-parse --abbrev-ref HEAD) || exit -1+if [[ $(node --version) < $nodeMinVersion ]]; then+ echo 'You need node >= 6'+ exit 0+fi++if [[ $(npm --version) < $npmMinVersion ]]; then+ echo 'You need npm >= 3'+ exit 0+fiif pgrep peertube > /dev/null; thenecho 'PeerTube is running!'exit 0fi+git pull origin $(git rev-parse --abbrev-ref HEAD) || exit -1+npm installnpm updatecd client && npm update && cd ../