From f730ef1f6f2a9ecb738cfb18ed0ea1b60ab9de89 Mon Sep 17 00:00:00 2001 From: Gitouche <26656-gitouche@users.noreply.framagit.org> Date: Fri, 28 Jan 2022 21:15:15 +0100 Subject: [PATCH] 10_install pour les pods : echouer si le pod existe deja --- podman-framadate/10_install.sh | 1 + podman-jitsi/10_install.sh | 2 ++ podman-matrix/10_install.sh | 1 + podman-seafile/10_install.sh | 1 + 4 files changed, 5 insertions(+) diff --git a/podman-framadate/10_install.sh b/podman-framadate/10_install.sh index acf7a32..972e784 100755 --- a/podman-framadate/10_install.sh +++ b/podman-framadate/10_install.sh @@ -7,6 +7,7 @@ source ${ABSDIR}/vars.sh ensure_pwd_is_scriptdir ensure_not_root +ensure_pod_not_exists ${pod_name} ensure_variables_are_defined "$envvars" if ! podman volume exists ${dbvolume} ; then diff --git a/podman-jitsi/10_install.sh b/podman-jitsi/10_install.sh index 6c77d66..6dfbd88 100755 --- a/podman-jitsi/10_install.sh +++ b/podman-jitsi/10_install.sh @@ -7,6 +7,8 @@ source ${ABSDIR}/vars.sh ensure_pwd_is_scriptdir ensure_not_root +ensure_pod_not_exists ${pod_name} + if [[ ! -d ~/${confvolume} ]]; then echo "Error : conf volume ~/${confvolume} does not exists. Consider running 05_freshinstall.sh if this is the first install." exit 1 diff --git a/podman-matrix/10_install.sh b/podman-matrix/10_install.sh index a328547..5ec169c 100755 --- a/podman-matrix/10_install.sh +++ b/podman-matrix/10_install.sh @@ -7,6 +7,7 @@ source ${ABSDIR}/vars.sh ensure_pwd_is_scriptdir ensure_not_root +ensure_pod_not_exists ${pod_name} ensure_variables_are_defined "$envvars" if ! podman volume exists ${confvolume} ; then diff --git a/podman-seafile/10_install.sh b/podman-seafile/10_install.sh index 9f059f6..a875271 100755 --- a/podman-seafile/10_install.sh +++ b/podman-seafile/10_install.sh @@ -7,6 +7,7 @@ source ${ABSDIR}/vars.sh ensure_pwd_is_scriptdir ensure_not_root +ensure_pod_not_exists ${pod_name} ensure_variables_are_defined "$envvars" if ! podman volume exists ${dbvolume} ; then