From 6940860d708622ec04b1b53e26fa74f1a27970dc Mon Sep 17 00:00:00 2001 From: Dmitry Ivankov Date: Wed, 3 May 2023 11:48:22 +0200 Subject: [PATCH] Allow passing extra arguments to wait-for-manager Allows to use ```yaml worker: command: ["/wait-for-manager.sh", "-c", "wal_level=logical"] ``` to allow shard movements like ```sql select citus_move_shard_placement(102024, 'citus-worker-2', 5432, 'citus-worker-1', 5432); ``` --- wait-for-manager.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wait-for-manager.sh b/wait-for-manager.sh index e66c9750..ab353115 100644 --- a/wait-for-manager.sh +++ b/wait-for-manager.sh @@ -10,4 +10,4 @@ done >&2 echo "Manager is up - starting worker" -exec gosu postgres "/usr/local/bin/docker-entrypoint.sh" "postgres" +exec gosu postgres "/usr/local/bin/docker-entrypoint.sh" "postgres" "$@"