self-hosted/install/set-up-and-migrate-database.sh
2021-11-30 16:55:56 -05:00

16 lines
416 B
Bash

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