mirror of https://github.com/OpenVidu/openvidu.git
Compare commits
2 Commits
Author | SHA1 | Date |
---|---|---|
![]() |
c2b392d6d8 | |
![]() |
aac968eaba |
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
# Global variables
|
# Global variables
|
||||||
OPENVIDU_FOLDER=openvidu
|
OPENVIDU_FOLDER=openvidu
|
||||||
OPENVIDU_VERSION=master
|
OPENVIDU_VERSION=v2.26.0
|
||||||
OPENVIDU_UPGRADABLE_VERSION="2.25"
|
OPENVIDU_UPGRADABLE_VERSION="2.25"
|
||||||
DOWNLOAD_URL=https://raw.githubusercontent.com/OpenVidu/openvidu/${OPENVIDU_VERSION}
|
DOWNLOAD_URL=https://raw.githubusercontent.com/OpenVidu/openvidu/${OPENVIDU_VERSION}
|
||||||
|
|
||||||
|
@ -299,17 +299,24 @@ upgrade_ov() {
|
||||||
# Check docker and docker-compose installation
|
# Check docker and docker-compose installation
|
||||||
if ! command -v docker > /dev/null; then
|
if ! command -v docker > /dev/null; then
|
||||||
echo "You don't have docker installed, please install it and re-run the command"
|
echo "You don't have docker installed, please install it and re-run the command"
|
||||||
exit 0
|
exit 1
|
||||||
|
else
|
||||||
|
# Check version of docker is equal or higher than 20.10.10
|
||||||
|
DOCKER_VERSION=$(docker version --format '{{.Server.Version}}' | sed "s/-rc[0-9]*//")
|
||||||
|
if ! printf '%s\n%s\n' "20.10.10" "$DOCKER_VERSION" | sort -V -C; then
|
||||||
|
echo "You need a docker version equal or higher than 20.10.10, please update your docker and re-run the command"; \
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! command -v docker-compose > /dev/null; then
|
if ! command -v docker-compose > /dev/null; then
|
||||||
echo "You don't have docker-compose installed, please install it and re-run the command"
|
echo "You don't have docker-compose installed, please install it and re-run the command"
|
||||||
exit 0
|
exit 1
|
||||||
else
|
else
|
||||||
COMPOSE_VERSION=$(docker-compose version --short | sed "s/-rc[0-9]*//")
|
COMPOSE_VERSION=$(docker-compose version --short | sed "s/-rc[0-9]*//")
|
||||||
if ! printf '%s\n%s\n' "1.24" "$COMPOSE_VERSION" | sort -V -C; then
|
if ! printf '%s\n%s\n' "1.24" "$COMPOSE_VERSION" | sort -V -C; then
|
||||||
echo "You need a docker-compose version equal or higher than 1.24, please update your docker-compose and re-run the command"; \
|
echo "You need a docker-compose version equal or higher than 1.24, please update your docker-compose and re-run the command"; \
|
||||||
exit 0
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
# Global variables
|
# Global variables
|
||||||
OPENVIDU_FOLDER=openvidu
|
OPENVIDU_FOLDER=openvidu
|
||||||
OPENVIDU_VERSION=master
|
OPENVIDU_VERSION=v2.26.0
|
||||||
OPENVIDU_UPGRADABLE_VERSION="2.25"
|
OPENVIDU_UPGRADABLE_VERSION="2.25"
|
||||||
AWS_SCRIPTS_FOLDER=${OPENVIDU_FOLDER}/cluster/aws
|
AWS_SCRIPTS_FOLDER=${OPENVIDU_FOLDER}/cluster/aws
|
||||||
ELASTICSEARCH_FOLDER=${OPENVIDU_FOLDER}/elasticsearch
|
ELASTICSEARCH_FOLDER=${OPENVIDU_FOLDER}/elasticsearch
|
||||||
|
@ -159,17 +159,24 @@ replace_variable_in_new_env_file() {
|
||||||
# Check docker and docker-compose installation
|
# Check docker and docker-compose installation
|
||||||
if ! command -v docker > /dev/null; then
|
if ! command -v docker > /dev/null; then
|
||||||
echo "You don't have docker installed, please install it and re-run the command"
|
echo "You don't have docker installed, please install it and re-run the command"
|
||||||
exit 0
|
exit 1
|
||||||
|
else
|
||||||
|
# Check version of docker is equal or higher than 20.10.10
|
||||||
|
DOCKER_VERSION=$(docker version --format '{{.Server.Version}}' | sed "s/-rc[0-9]*//")
|
||||||
|
if ! printf '%s\n%s\n' "20.10.10" "$DOCKER_VERSION" | sort -V -C; then
|
||||||
|
echo "You need a docker version equal or higher than 20.10.10, please update your docker and re-run the command"; \
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! command -v docker-compose > /dev/null; then
|
if ! command -v docker-compose > /dev/null; then
|
||||||
echo "You don't have docker-compose installed, please install it and re-run the command"
|
echo "You don't have docker-compose installed, please install it and re-run the command"
|
||||||
exit 0
|
exit 1
|
||||||
else
|
else
|
||||||
COMPOSE_VERSION=$(docker-compose version --short | sed "s/-rc[0-9]*//")
|
COMPOSE_VERSION=$(docker-compose version --short | sed "s/-rc[0-9]*//")
|
||||||
if ! printf '%s\n%s\n' "1.24" "$COMPOSE_VERSION" | sort -V -C; then
|
if ! printf '%s\n%s\n' "1.24" "$COMPOSE_VERSION" | sort -V -C; then
|
||||||
echo "You need a docker-compose version equal or higher than 1.24, please update your docker-compose and re-run the command"; \
|
echo "You need a docker-compose version equal or higher than 1.24, please update your docker-compose and re-run the command"; \
|
||||||
exit 0
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -87,17 +87,24 @@ new_coturn_installation() {
|
||||||
# Check docker and docker-compose installation
|
# Check docker and docker-compose installation
|
||||||
if ! command -v docker > /dev/null; then
|
if ! command -v docker > /dev/null; then
|
||||||
echo "You don't have docker installed, please install it and re-run the command"
|
echo "You don't have docker installed, please install it and re-run the command"
|
||||||
exit 0
|
exit 1
|
||||||
|
else
|
||||||
|
# Check version of docker is equal or higher than 20.10.10
|
||||||
|
DOCKER_VERSION=$(docker version --format '{{.Server.Version}}' | sed "s/-rc[0-9]*//")
|
||||||
|
if ! printf '%s\n%s\n' "20.10.10" "$DOCKER_VERSION" | sort -V -C; then
|
||||||
|
echo "You need a docker version equal or higher than 20.10.10, please update your docker and re-run the command"; \
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! command -v docker-compose > /dev/null; then
|
if ! command -v docker-compose > /dev/null; then
|
||||||
echo "You don't have docker-compose installed, please install it and re-run the command"
|
echo "You don't have docker-compose installed, please install it and re-run the command"
|
||||||
exit 0
|
exit 1
|
||||||
else
|
else
|
||||||
COMPOSE_VERSION=$(docker-compose version --short | sed "s/-rc[0-9]*//")
|
COMPOSE_VERSION=$(docker-compose version --short | sed "s/-rc[0-9]*//")
|
||||||
if ! printf '%s\n%s\n' "1.24" "$COMPOSE_VERSION" | sort -V -C; then
|
if ! printf '%s\n%s\n' "1.24" "$COMPOSE_VERSION" | sort -V -C; then
|
||||||
echo "You need a docker-compose version equal or higher than 1.24, please update your docker-compose and re-run the command"; \
|
echo "You need a docker-compose version equal or higher than 1.24, please update your docker-compose and re-run the command"; \
|
||||||
exit 0
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
MEDIA_NODE_FOLDER=kms
|
MEDIA_NODE_FOLDER=kms
|
||||||
MEDIA_NODE_VERSION=master
|
MEDIA_NODE_VERSION=v2.26.0
|
||||||
OPENVIDU_UPGRADABLE_VERSION="2.25"
|
OPENVIDU_UPGRADABLE_VERSION="2.25"
|
||||||
BEATS_FOLDER=${MEDIA_NODE_FOLDER}/beats
|
BEATS_FOLDER=${MEDIA_NODE_FOLDER}/beats
|
||||||
OPENVIDU_RECORDINGS_FOLDER="/opt/openvidu/recordings"
|
OPENVIDU_RECORDINGS_FOLDER="/opt/openvidu/recordings"
|
||||||
|
@ -365,17 +365,24 @@ upgrade_media_node() {
|
||||||
# Check docker and docker-compose installation
|
# Check docker and docker-compose installation
|
||||||
if ! command -v docker > /dev/null; then
|
if ! command -v docker > /dev/null; then
|
||||||
echo "You don't have docker installed, please install it and re-run the command"
|
echo "You don't have docker installed, please install it and re-run the command"
|
||||||
exit 0
|
exit 1
|
||||||
|
else
|
||||||
|
# Check version of docker is equal or higher than 20.10.10
|
||||||
|
DOCKER_VERSION=$(docker version --format '{{.Server.Version}}' | sed "s/-rc[0-9]*//")
|
||||||
|
if ! printf '%s\n%s\n' "20.10.10" "$DOCKER_VERSION" | sort -V -C; then
|
||||||
|
echo "You need a docker version equal or higher than 20.10.10, please update your docker and re-run the command"; \
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! command -v docker-compose > /dev/null; then
|
if ! command -v docker-compose > /dev/null; then
|
||||||
echo "You don't have docker-compose installed, please install it and re-run the command"
|
echo "You don't have docker-compose installed, please install it and re-run the command"
|
||||||
exit 0
|
exit 1
|
||||||
else
|
else
|
||||||
COMPOSE_VERSION=$(docker-compose version --short | sed "s/-rc[0-9]*//")
|
COMPOSE_VERSION=$(docker-compose version --short | sed "s/-rc[0-9]*//")
|
||||||
if ! printf '%s\n%s\n' "1.24" "$COMPOSE_VERSION" | sort -V -C; then
|
if ! printf '%s\n%s\n' "1.24" "$COMPOSE_VERSION" | sort -V -C; then
|
||||||
echo "You need a docker-compose version equal or higher than 1.24, please update your docker-compose and re-run the command"; \
|
echo "You need a docker-compose version equal or higher than 1.24, please update your docker-compose and re-run the command"; \
|
||||||
exit 0
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
# Global variables
|
# Global variables
|
||||||
OPENVIDU_FOLDER=openvidu
|
OPENVIDU_FOLDER=openvidu
|
||||||
OPENVIDU_VERSION=master
|
OPENVIDU_VERSION=v2.26.0
|
||||||
OPENVIDU_UPGRADABLE_VERSION="2.25"
|
OPENVIDU_UPGRADABLE_VERSION="2.25"
|
||||||
ELASTICSEARCH_FOLDER=${OPENVIDU_FOLDER}/elasticsearch
|
ELASTICSEARCH_FOLDER=${OPENVIDU_FOLDER}/elasticsearch
|
||||||
BEATS_FOLDER=${OPENVIDU_FOLDER}/beats
|
BEATS_FOLDER=${OPENVIDU_FOLDER}/beats
|
||||||
|
@ -387,17 +387,24 @@ upgrade_ov() {
|
||||||
# Check docker and docker-compose installation
|
# Check docker and docker-compose installation
|
||||||
if ! command -v docker > /dev/null; then
|
if ! command -v docker > /dev/null; then
|
||||||
echo "You don't have docker installed, please install it and re-run the command"
|
echo "You don't have docker installed, please install it and re-run the command"
|
||||||
exit 0
|
exit 1
|
||||||
|
else
|
||||||
|
# Check version of docker is equal or higher than 20.10.10
|
||||||
|
DOCKER_VERSION=$(docker version --format '{{.Server.Version}}' | sed "s/-rc[0-9]*//")
|
||||||
|
if ! printf '%s\n%s\n' "20.10.10" "$DOCKER_VERSION" | sort -V -C; then
|
||||||
|
echo "You need a docker version equal or higher than 20.10.10, please update your docker and re-run the command"; \
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! command -v docker-compose > /dev/null; then
|
if ! command -v docker-compose > /dev/null; then
|
||||||
echo "You don't have docker-compose installed, please install it and re-run the command"
|
echo "You don't have docker-compose installed, please install it and re-run the command"
|
||||||
exit 0
|
exit 1
|
||||||
else
|
else
|
||||||
COMPOSE_VERSION=$(docker-compose version --short | sed "s/-rc[0-9]*//")
|
COMPOSE_VERSION=$(docker-compose version --short | sed "s/-rc[0-9]*//")
|
||||||
if ! printf '%s\n%s\n' "1.24" "$COMPOSE_VERSION" | sort -V -C; then
|
if ! printf '%s\n%s\n' "1.24" "$COMPOSE_VERSION" | sort -V -C; then
|
||||||
echo "You need a docker-compose version equal or higher than 1.24, please update your docker-compose and re-run the command"; \
|
echo "You need a docker-compose version equal or higher than 1.24, please update your docker-compose and re-run the command"; \
|
||||||
exit 0
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
# Global variables
|
# Global variables
|
||||||
OPENVIDU_FOLDER=openvidu
|
OPENVIDU_FOLDER=openvidu
|
||||||
OPENVIDU_VERSION=master
|
OPENVIDU_VERSION=v2.26.0
|
||||||
OPENVIDU_UPGRADABLE_VERSION="2.25"
|
OPENVIDU_UPGRADABLE_VERSION="2.25"
|
||||||
AWS_SCRIPTS_FOLDER=${OPENVIDU_FOLDER}/cluster/aws
|
AWS_SCRIPTS_FOLDER=${OPENVIDU_FOLDER}/cluster/aws
|
||||||
ELASTICSEARCH_FOLDER=${OPENVIDU_FOLDER}/elasticsearch
|
ELASTICSEARCH_FOLDER=${OPENVIDU_FOLDER}/elasticsearch
|
||||||
|
@ -458,17 +458,24 @@ upgrade_ov() {
|
||||||
# Check docker and docker-compose installation
|
# Check docker and docker-compose installation
|
||||||
if ! command -v docker > /dev/null; then
|
if ! command -v docker > /dev/null; then
|
||||||
echo "You don't have docker installed, please install it and re-run the command"
|
echo "You don't have docker installed, please install it and re-run the command"
|
||||||
exit 0
|
exit 1
|
||||||
|
else
|
||||||
|
# Check version of docker is equal or higher than 20.10.10
|
||||||
|
DOCKER_VERSION=$(docker version --format '{{.Server.Version}}' | sed "s/-rc[0-9]*//")
|
||||||
|
if ! printf '%s\n%s\n' "20.10.10" "$DOCKER_VERSION" | sort -V -C; then
|
||||||
|
echo "You need a docker version equal or higher than 20.10.10, please update your docker and re-run the command"; \
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! command -v docker-compose > /dev/null; then
|
if ! command -v docker-compose > /dev/null; then
|
||||||
echo "You don't have docker-compose installed, please install it and re-run the command"
|
echo "You don't have docker-compose installed, please install it and re-run the command"
|
||||||
exit 0
|
exit 1
|
||||||
else
|
else
|
||||||
COMPOSE_VERSION=$(docker-compose version --short | sed "s/-rc[0-9]*//")
|
COMPOSE_VERSION=$(docker-compose version --short | sed "s/-rc[0-9]*//")
|
||||||
if ! printf '%s\n%s\n' "1.24" "$COMPOSE_VERSION" | sort -V -C; then
|
if ! printf '%s\n%s\n' "1.24" "$COMPOSE_VERSION" | sort -V -C; then
|
||||||
echo "You need a docker-compose version equal or higher than 1.24, please update your docker-compose and re-run the command"; \
|
echo "You need a docker-compose version equal or higher than 1.24, please update your docker-compose and re-run the command"; \
|
||||||
exit 0
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue