mirror of https://github.com/OpenVidu/openvidu.git
check version docker-compose in install script
parent
797732f244
commit
f73c682903
|
@ -4,16 +4,20 @@ OPENVIDU_FOLDER=openvidu
|
||||||
OPENVIDU_VERSION=master
|
OPENVIDU_VERSION=master
|
||||||
|
|
||||||
# Check docker and docker-compose installation
|
# Check docker and docker-compose installation
|
||||||
docker -v > /dev/null 2>&1
|
if ! command -v docker > /dev/null; then
|
||||||
if [ $? -ne 0 ]; 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 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
docker-compose -v > /dev/null 2>&1
|
if ! command -v docker-compose > /dev/null; then
|
||||||
if [ $? -ne 0 ]; 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 0
|
||||||
|
else
|
||||||
|
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
|
||||||
|
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
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create folder openvidu-docker-compose
|
# Create folder openvidu-docker-compose
|
||||||
|
|
Loading…
Reference in New Issue