From 9ff5469788825fe425510cf4c4c4070b9ea5b660 Mon Sep 17 00:00:00 2001 From: Gitouche <26656-gitouche@users.noreply.framagit.org> Date: Sun, 6 Jun 2021 14:17:26 +0200 Subject: [PATCH] podman-jitsi : add checks --- podman-jitsi/05_freshinstall.sh | 2 +- podman-jitsi/10_install.sh | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/podman-jitsi/05_freshinstall.sh b/podman-jitsi/05_freshinstall.sh index 50033ee..a8bc645 100755 --- a/podman-jitsi/05_freshinstall.sh +++ b/podman-jitsi/05_freshinstall.sh @@ -8,7 +8,7 @@ ensure_pwd_is_scriptdir ensure_not_root if [[ -d ${confvolume} ]]; then - echo Error : conf volume already exists. Please remove it first (prune?). + echo Error : conf volume ${confvolume} already exists. Please remove it first (prune?). exit 1 fi diff --git a/podman-jitsi/10_install.sh b/podman-jitsi/10_install.sh index 8e8a560..214eca0 100755 --- a/podman-jitsi/10_install.sh +++ b/podman-jitsi/10_install.sh @@ -7,6 +7,11 @@ source ${ABSDIR}/vars.sh ensure_pwd_is_scriptdir ensure_not_root +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 +fi + curl -s -- "https://codeload.github.com/jitsi/docker-jitsi-meet/tar.gz/refs/tags/${version}" | tar xzv --strip-components 1 docker-jitsi-meet-${version}/docker-compose.yml docker-jitsi-meet-${version}/env.example docker-jitsi-meet-${version}/gen-passwords.sh cp env.example .env ./gen-passwords.sh