2022-11-19 13:19:37 +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"
|
|
|
|
|
|
|
|
if podman volume exists ${dbvolume} ; then
|
|
|
|
echo "Error : DB volume ${dbvolume} already exists."
|
|
|
|
echo "Please remove it before a freshinstall, or continue with a standard installation."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if podman volume exists ${datavolume} ; then
|
|
|
|
echo "Error : DATA volume ${datavolume} already exists."
|
|
|
|
echo "Please remove it before a freshinstall, or continue with a standard installation."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2022-11-19 17:57:17 +00:00
|
|
|
#if podman volume exists ${uploadsvolume} ; then
|
|
|
|
# echo "Error : UPLOADS volume ${uploadsvolume} already exists."
|
|
|
|
# echo "Please remove it before a freshinstall, or continue with a standard installation."
|
|
|
|
# exit 1
|
|
|
|
#fi
|
2022-11-19 13:19:37 +00:00
|
|
|
|
|
|
|
podman volume create ${dbvolume}
|
2022-11-19 17:57:17 +00:00
|
|
|
podman volume create ${datavolume} #&& podman unshare chmod 0777 `get_podman_volume_path ${datavolume}`
|
|
|
|
#podman volume create ${uploadsvolume} && podman unshare chmod 0777 `get_podman_volume_path ${uploadsvolume}`
|
2022-11-19 13:19:37 +00:00
|
|
|
|
|
|
|
${ABSDIR}/10_install.sh
|