2021-05-26 19:54:40 +00:00
|
|
|
#!/usr/bin/env bash
|
2022-01-09 11:56:04 +00:00
|
|
|
|
|
|
|
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 [[ ! -d ~/.local/share/containers/storage/volumes/${dbvolume} ]]; then
|
|
|
|
echo "Error : conf volume ${dbvolume} does not exists. Consider running 05_freshinstall.sh if this is the first install."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
cat <<EOT >> .env
|
|
|
|
MYSQL_ROOT_PASSWORD=${GARBAYE_FRAMADATE_MYSQL_ROOT_PASSWORD}
|
|
|
|
MYSQL_PASSWORD=${GARBAYE_FRAMADATE_MYSQL_PASSWORD}
|
|
|
|
APP_NAME=${GARBAYE_FRAMADATE_APP_NAME}
|
|
|
|
DOMAIN=${GARBAYE_FRAMADATE_DOMAIN}
|
|
|
|
ADMIN_MAIL=${GARBAYE_FRAMADATE_ADMIN_MAIL}
|
|
|
|
ADMIN_PASSWORD=${GARBAYE_FRAMADATE_ADMIN_PASSWORD}
|
|
|
|
SMTP_SERVER=${GARBAYE_FRAMADATE_SMTP_SERVER}
|
|
|
|
|
|
|
|
EOT
|
|
|
|
|
|
|
|
export GARBAYE_FRAMADATE_FRAMADATE_VERSION="${framadate_release}"
|
2021-05-26 19:54:40 +00:00
|
|
|
podman-compose up -d
|
2022-01-09 11:56:04 +00:00
|
|
|
shred -u .env
|