BUGFIX synapse : n'arrivait pas a joindre la db au demarrage
This commit is contained in:
parent
476ac77a30
commit
cbf36cefeb
|
@ -32,6 +32,7 @@ echo -n "Waiting for PostgreSQL to be ready... " && \
|
||||||
( podman logs -f synapse-db 2>&1 & ) | grep -q 'database system is ready to accept connections' && \
|
( podman logs -f synapse-db 2>&1 & ) | grep -q 'database system is ready to accept connections' && \
|
||||||
echo "OK." && \
|
echo "OK." && \
|
||||||
podman run -d --name ${container_name} --pod ${pod_name} \
|
podman run -d --name ${container_name} --pod ${pod_name} \
|
||||||
|
--add-host ${db_container_name}:127.0.0.1 \
|
||||||
--mount type=volume,src=${confvolume},dst=/data ${synapse_image}:${synapse_version} && \
|
--mount type=volume,src=${confvolume},dst=/data ${synapse_image}:${synapse_version} && \
|
||||||
echo -n "Waiting for background tasks to end... " && \
|
echo -n "Waiting for background tasks to end... " && \
|
||||||
( podman logs -f synapse 2>&1 & ) | grep -q 'No more background updates to do' && \
|
( podman logs -f synapse 2>&1 & ) | grep -q 'No more background updates to do' && \
|
||||||
|
|
Loading…
Reference in a new issue