2022-01-17 21:15:42 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
ABSDIR="$( dirname "$(readlink -f -- "$0")" )"
|
|
|
|
source ${ABSDIR}/../functions.sh
|
|
|
|
source ${ABSDIR}/vars.sh
|
|
|
|
|
|
|
|
ensure_pwd_is_scriptdir
|
|
|
|
ensure_not_root
|
|
|
|
|
|
|
|
ensure_variables_are_defined "$envvars"
|
|
|
|
|
2022-01-28 11:45:26 +00:00
|
|
|
if podman volume exists ${dbvolume} ; then
|
|
|
|
echo "Error : DB volume ${dbvolume} already exists."
|
2022-01-17 21:15:42 +00:00
|
|
|
echo "Please remove it before a freshinstall, or continue with a standard installation."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2022-01-28 11:45:26 +00:00
|
|
|
if podman volume exists ${datavolume} ; then
|
|
|
|
echo "Error : DATA volume ${datavolume} already exists."
|
2022-01-17 21:15:42 +00:00
|
|
|
echo "Please remove it before a freshinstall, or continue with a standard installation."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
podman volume create ${dbvolume}
|
|
|
|
podman volume create ${datavolume}
|
2022-01-28 21:28:12 +00:00
|
|
|
|
|
|
|
${ABSDIR}/10_install.sh
|