From 87b101baff81d10f95d2396e233aa57d374db79d Mon Sep 17 00:00:00 2001 From: Sylvain Date: Tue, 8 Oct 2019 15:27:16 +0200 Subject: [PATCH] fix read postgres path command --- scripts/postgre-upgrade.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/postgre-upgrade.sh b/scripts/postgre-upgrade.sh index 0eefa341d..fb3b80fae 100644 --- a/scripts/postgre-upgrade.sh +++ b/scripts/postgre-upgrade.sh @@ -66,7 +66,7 @@ test_docker_compose() read_path() { - PG_PATH=$(awk "BEGIN { FS=\"\n\"; RS=\"\"; } { match(\$0, /image: postgres:$NEW(\n|.)+volumes:(\n|.)+(-.*postgresql\/data)/, lines); FS=\"[ :]+\"; RS=\"\r\n\"; split(lines[3], line); print line[2] }" "$FM_PATH/docker-compose.yml") + PG_PATH=$(awk "BEGIN { FS=\"\n\"; RS=\"\"; } { match(\$0, /image: postgres:$OLD(\n|.)+volumes:(\n|.)+(-.*postgresql\/data)/, lines); FS=\"[ :]+\"; RS=\"\r\n\"; split(lines[3], line); print line[2] }" "$FM_PATH/docker-compose.yml") } prepare_path()