Skip to content

Commit

Permalink
Add version checking for docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeniy-antonyuk committed Aug 7, 2024
1 parent 5c6fc57 commit 188d3fb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions install/OneClickInstall/install-Docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1187,6 +1187,10 @@ set_installation_type_data () {
download_files () {
if ! command_exists docker-compose; then
[ "${OFFLINE_INSTALLATION}" = "false" ] && install_docker_compose || { echo "docker-compose not installed"; exit 1; }
else
if [ "$(docker-compose --version | grep -oP '(?<=v)\d+\.\d+'| sed 's/\.//')" -lt "21" ]; then
[ "$OFFLINE_INSTALLATION" = "false" ] && install_docker_compose || { echo "docker-compose version is outdated"; exit 1; }
fi
fi

# Fixes issues with variables when upgrading to v1.1.3
Expand Down

0 comments on commit 188d3fb

Please sign in to comment.