diff options
Diffstat (limited to 'scripts/upgrade-peertube.sh')
-rwxr-xr-x | scripts/upgrade-peertube.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/upgrade-peertube.sh b/scripts/upgrade-peertube.sh index 562a2a618..bfef38264 100755 --- a/scripts/upgrade-peertube.sh +++ b/scripts/upgrade-peertube.sh | |||
@@ -4,14 +4,14 @@ verlte() { | |||
4 | [ "$1" = "`echo -e "$1\n$2" | sort -V | head -n1`" ] | 4 | [ "$1" = "`echo -e "$1\n$2" | sort -V | head -n1`" ] |
5 | } | 5 | } |
6 | 6 | ||
7 | nodeMinVersion="6.0.0" | 7 | nodeMinVersion="8.0.0" |
8 | npmMinVersion="3.0.0" | 8 | npmMinVersion="3.0.0" |
9 | 9 | ||
10 | actualNodeVersion=$(node --version | tr -d "v") | 10 | actualNodeVersion=$(node --version | tr -d "v") |
11 | actualNpmVersion=$(npm --version) | 11 | actualNpmVersion=$(npm --version) |
12 | 12 | ||
13 | if verlte $actualNodeVersion $nodeMinVersion; then | 13 | if verlte $actualNodeVersion $nodeMinVersion; then |
14 | echo 'You need node >= 6' | 14 | echo 'You need node >= 8' |
15 | exit 0 | 15 | exit 0 |
16 | fi | 16 | fi |
17 | 17 | ||