22 lines
579 B
Bash
Executable file
22 lines
579 B
Bash
Executable file
#!/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 "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} && \
|
|
podman unshare chown -R 999:999 `get_podman_volume_path ${dbvolume}`
|
|
|
|
${ABSDIR}/10_install.sh
|