diff --git a/podman-matrix/05_freshinstall.sh b/podman-matrix/05_freshinstall.sh index 1fff3e0..e101023 100755 --- a/podman-matrix/05_freshinstall.sh +++ b/podman-matrix/05_freshinstall.sh @@ -16,7 +16,7 @@ fi if [[ ! -d ~/.local/share/containers/storage/volumes/${dbvolume} ]]; then podman volume create matrixdotorg_synapse-pgsql fi -if [[ ! -d `podman volume inspect --format '{{ .Mountpoint }}' matrixdotorg_synapse-data`/homeserver.yaml ]]; then +if [[ ! -f `podman volume inspect --format '{{ .Mountpoint }}' matrixdotorg_synapse-data`/homeserver.yaml ]]; then podman run -it --name ${container_name}-generate --mount type=volume,src=matrixdotorg_synapse-data,dst=/data -e SYNAPSE_SERVER_NAME=garbaye.fr -e SYNAPSE_REPORT_STATS=no ${synapse_image}:${synapse_version} generate && \ podman rm ${container_name}-generate fi