generalisation podman volume exists (2)
This commit is contained in:
parent
f8d51e49e7
commit
e9b1fe260f
|
@ -9,12 +9,12 @@ ensure_not_root
|
||||||
|
|
||||||
ensure_variables_are_defined "$envvars"
|
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."
|
echo "Error : conf volume ${confvolume} does not exists. Consider running 05_freshinstall.sh if this is the first install."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
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."
|
echo "Error : conf volume ${dbvolume} does not exists. Consider running 05_freshinstall.sh if this is the first install."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue