10_install pour les pods : echouer si le pod existe deja

This commit is contained in:
Gitouche 2022-01-28 21:15:15 +01:00
parent ca0f511ede
commit f730ef1f6f
4 changed files with 5 additions and 0 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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