Correction des scripts d'install

This commit is contained in:
Loïc 2021-06-14 15:10:05 +02:00
parent be4aa048ae
commit 8a328fa9bb
2 changed files with 4 additions and 4 deletions

View file

@ -28,8 +28,8 @@ podman rm synapse-generate
#< enable_registration: false #< enable_registration: false
# #
#< database: #< database:
#< args:
#< name: psycopg2 #< name: psycopg2
#< args:
#< user: synapse #< user: synapse
#< password: mysecretpass #< password: mysecretpass
#< database: synapse #< database: synapse

View file

@ -24,9 +24,9 @@ podman run -d --name ${db_container_name} --pod ${pod_name} \
-e POSTGRES_DB=${container_name} \ -e POSTGRES_DB=${container_name} \
-e POSTGRES_INITDB_ARGS="--encoding=UTF8 --locale=C" \ -e POSTGRES_INITDB_ARGS="--encoding=UTF8 --locale=C" \
-e PGDATA=/var/lib/postgresql/data/${container_name} ${postgres_image} && \ -e PGDATA=/var/lib/postgresql/data/${container_name} ${postgres_image} && \
podman logs -f ${db_container_name} &&\
podman run -d --name ${container_name} --pod ${pod_name} \ podman run -d --name ${container_name} --pod ${pod_name} \
--mount type=volume,src=${confvolume},dst=/data ${synapse_image} && \ --mount type=volume,src=${confvolume},dst=/data ${synapse_image} && \
podman logs -f ${container_name} &&\ echo "Pod built and starting
echo Pod built and starting run 'podman logs -f synapse synapse-db' to show initialisation status
then stop pod with 'podman pod stop ${pod_name}'"