self-hosted/install/set-up-and-migrate-database.sh
2022-09-14 19:59:12 +00:00

16 lines
383 B
Bash

echo "${_group}Setting up / migrating database ..."
if [[ -n "${CI:-}" || "${SKIP_USER_CREATION:-0}" == 1 ]]; then
$dcr web upgrade --noinput
echo ""
echo "Did not prompt for user creation. Run the following command to create one"
echo "yourself (recommended):"
echo ""
echo " $dc_base run --rm web createuser"
echo ""
else
$dcr web upgrade
fi
echo "${_endgroup}"