Do Docker-Compose parse check everywhere (even for new installs).

This commit is contained in:
Buster "Silver Eagle" Neece 2022-02-20 15:24:47 -06:00
parent cf4719c730
commit 5c839fd69f
No known key found for this signature in database
GPG Key ID: 9FC8B9E008872109
1 changed files with 7 additions and 7 deletions

View File

@ -370,6 +370,13 @@ run-installer() {
touch docker-compose.new.yml
local dc_config_test=$(docker-compose -f docker-compose.new.yml config 2>/dev/null)
if [ $? -ne 0 ]; then
if ask "Docker Compose needs to be updated to continue. Update to latest version?" Y; then
install-docker-compose
fi
fi
curl -fsSL https://raw.githubusercontent.com/AzuraCast/AzuraCast/$AZURACAST_RELEASE_BRANCH/docker-compose.installer.yml -o docker-compose.installer.yml
docker-compose -p azuracast_installer -f docker-compose.installer.yml pull
docker-compose -p azuracast_installer -f docker-compose.installer.yml run --rm installer install "$@"
@ -525,13 +532,6 @@ update() {
rm docker.new.sh
fi
local dc_config_test=$(docker-compose config 2>/dev/null)
if [ $? -ne 0 ]; then
if ask "Docker Compose needs to be updated to continue. Update to latest version?" Y; then
install-docker-compose
fi
fi
run-installer --update "$@"
# Check for updated Docker Compose config.