From 8cfd2d16943087e6dd34631612de46cce5adb1a9 Mon Sep 17 00:00:00 2001 From: Sylvain Date: Wed, 24 Feb 2021 17:00:33 +0100 Subject: [PATCH] WIP: migrate yq commands to V4 --- setup/setup.sh | 16 ++++++++-------- setup/upgrade.sh | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/setup/setup.sh b/setup/setup.sh index 594f3e21c..756f511dc 100755 --- a/setup/setup.sh +++ b/setup/setup.sh @@ -147,7 +147,7 @@ prepare_files() } yq() { - docker run --rm -i -v "${FABMANAGER_PATH}:/workdir" mikefarah/yq yq "$@" + docker run --rm -i -v "${FABMANAGER_PATH}:/workdir" mikefarah/yq:4 "$@" } prepare_nginx() @@ -160,16 +160,16 @@ prepare_nginx() else # if nginx is not installed, remove its associated block from docker-compose.yml echo "Removing nginx..." - yq d -i docker-compose.yml services.nginx + yq -i eval 'del(.services.nginx)' docker-compose.yml read -rp "Do you want to map the Fab-manager's service to an external network? (Y/n) " confirm