Correction des scripts d'install

This commit is contained in:
Loïc 2021-06-14 14:19:55 +02:00
parent e5f83c1fa2
commit 2a73fa2c89
2 changed files with 6 additions and 4 deletions

View file

@ -28,6 +28,7 @@ podman rm synapse-generate
#< enable_registration: false
#
#< database:
#< args:
#< name: psycopg2
#< user: synapse
#< password: mysecretpass
@ -36,5 +37,5 @@ podman rm synapse-generate
#< port: 5432
#< cp_min: 5
#< cp_max: 10
${ABSDIR}/10_install.sh
#${ABSDIR}/10_install.sh

View file

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