From 065d11bfac5e44632053d620f353dedea49c0221 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc?= Date: Sun, 4 Jul 2021 21:21:54 +0200 Subject: [PATCH] =?UTF-8?q?V=C3=A9rification=20que=20le=20pod=20n'existe?= =?UTF-8?q?=20pas=20encore=20avant=20installation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- podman-matrix/10_install.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/podman-matrix/10_install.sh b/podman-matrix/10_install.sh index 198debd..2581018 100755 --- a/podman-matrix/10_install.sh +++ b/podman-matrix/10_install.sh @@ -18,6 +18,10 @@ if [[ ! -d ~/.local/share/containers/storage/volumes/${dbvolume} ]]; then echo "Error : conf volume ${dbvolume} does not exists. Consider running 05_freshinstall.sh if this is the first install." exit 1 fi + +# FAIL if pod exists +ensure_pod_not_exists ${pod_name} + podman pod create --publish 8086:8008 --name ${pod_name} && \ podman run -d --name ${db_container_name} --pod ${pod_name} \ --mount type=volume,src=${dbvolume},dst=/var/lib/postgresql/data/ \ @@ -31,4 +35,3 @@ podman run -d --name ${container_name} --pod ${pod_name} \ 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}'" -