From e9b1fe260ff3278c61a68b52908986cfe0a68543 Mon Sep 17 00:00:00 2001 From: Gitouche <26656-gitouche@users.noreply.framagit.org> Date: Fri, 28 Jan 2022 14:21:27 +0100 Subject: [PATCH] generalisation podman volume exists (2) --- podman-matrix/10_install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/podman-matrix/10_install.sh b/podman-matrix/10_install.sh index b86761c..a328547 100755 --- a/podman-matrix/10_install.sh +++ b/podman-matrix/10_install.sh @@ -9,12 +9,12 @@ ensure_not_root ensure_variables_are_defined "$envvars" -if [[ ! podman volume exists ${confvolume} ]]; then +if ! podman volume exists ${confvolume} ; then echo "Error : conf volume ${confvolume} does not exists. Consider running 05_freshinstall.sh if this is the first install." exit 1 fi -if [[ ! podman volume exists ${dbvolume} ]]; then +if ! podman volume exists ${dbvolume} ; then echo "Error : conf volume ${dbvolume} does not exists. Consider running 05_freshinstall.sh if this is the first install." exit 1 fi