10_install pour les pods : echouer si le pod existe deja
This commit is contained in:
parent
ca0f511ede
commit
f730ef1f6f
|
@ -7,6 +7,7 @@ source ${ABSDIR}/vars.sh
|
||||||
ensure_pwd_is_scriptdir
|
ensure_pwd_is_scriptdir
|
||||||
ensure_not_root
|
ensure_not_root
|
||||||
|
|
||||||
|
ensure_pod_not_exists ${pod_name}
|
||||||
ensure_variables_are_defined "$envvars"
|
ensure_variables_are_defined "$envvars"
|
||||||
|
|
||||||
if ! podman volume exists ${dbvolume} ; then
|
if ! podman volume exists ${dbvolume} ; then
|
||||||
|
|
|
@ -7,6 +7,8 @@ source ${ABSDIR}/vars.sh
|
||||||
ensure_pwd_is_scriptdir
|
ensure_pwd_is_scriptdir
|
||||||
ensure_not_root
|
ensure_not_root
|
||||||
|
|
||||||
|
ensure_pod_not_exists ${pod_name}
|
||||||
|
|
||||||
if [[ ! -d ~/${confvolume} ]]; then
|
if [[ ! -d ~/${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
|
||||||
|
|
|
@ -7,6 +7,7 @@ source ${ABSDIR}/vars.sh
|
||||||
ensure_pwd_is_scriptdir
|
ensure_pwd_is_scriptdir
|
||||||
ensure_not_root
|
ensure_not_root
|
||||||
|
|
||||||
|
ensure_pod_not_exists ${pod_name}
|
||||||
ensure_variables_are_defined "$envvars"
|
ensure_variables_are_defined "$envvars"
|
||||||
|
|
||||||
if ! podman volume exists ${confvolume} ; then
|
if ! podman volume exists ${confvolume} ; then
|
||||||
|
|
|
@ -7,6 +7,7 @@ source ${ABSDIR}/vars.sh
|
||||||
ensure_pwd_is_scriptdir
|
ensure_pwd_is_scriptdir
|
||||||
ensure_not_root
|
ensure_not_root
|
||||||
|
|
||||||
|
ensure_pod_not_exists ${pod_name}
|
||||||
ensure_variables_are_defined "$envvars"
|
ensure_variables_are_defined "$envvars"
|
||||||
|
|
||||||
if ! podman volume exists ${dbvolume} ; then
|
if ! podman volume exists ${dbvolume} ; then
|
||||||
|
|
Loading…
Reference in a new issue