2 files changed, 4 insertions, 3 deletions
diff --git a/changelog.d/18273.docker b/changelog.d/18273.docker
new file mode 100644
index 0000000000..1da0c3efb1
--- /dev/null
+++ b/changelog.d/18273.docker
@@ -0,0 +1 @@
+Allow passing arguments to start_for_complement.sh (to be sent to configure_workers_and_start.py).
diff --git a/docker/complement/conf/start_for_complement.sh b/docker/complement/conf/start_for_complement.sh
index cc798a3210..59b30e2051 100755
--- a/docker/complement/conf/start_for_complement.sh
+++ b/docker/complement/conf/start_for_complement.sh
@@ -5,12 +5,12 @@
set -e
echo "Complement Synapse launcher"
-echo " Args: $@"
+echo " Args: $*"
echo " Env: SYNAPSE_COMPLEMENT_DATABASE=$SYNAPSE_COMPLEMENT_DATABASE SYNAPSE_COMPLEMENT_USE_WORKERS=$SYNAPSE_COMPLEMENT_USE_WORKERS SYNAPSE_COMPLEMENT_USE_ASYNCIO_REACTOR=$SYNAPSE_COMPLEMENT_USE_ASYNCIO_REACTOR"
function log {
d=$(date +"%Y-%m-%d %H:%M:%S,%3N")
- echo "$d $@"
+ echo "$d $*"
}
# Set the server name of the homeserver
@@ -131,4 +131,4 @@ export SYNAPSE_TLS_KEY=/conf/server.tls.key
# Run the script that writes the necessary config files and starts supervisord, which in turn
# starts everything else
-exec /configure_workers_and_start.py
+exec /configure_workers_and_start.py "$@"
|