2022-01-09 11:56:04 +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 13:20:49 +00:00
|
|
|
if podman volume exists ${dbvolume} ; then
|
2022-01-09 11:56:04 +00:00
|
|
|
echo "Volume ${dbvolume} from previous installation already exists"
|
|
|
|
echo "Please remove them before fresh install, or try to continue with normal installation"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
podman volume create ${dbvolume} && \
|
2022-01-28 13:26:42 +00:00
|
|
|
podman unshare chown -R 999:999 `get_podman_volume_path ${dbvolume}`
|
2022-01-28 21:28:12 +00:00
|
|
|
|
|
|
|
${ABSDIR}/10_install.sh
|