goweb-oidc/misc/compose/mariadb/init-db.d/create_database_hydra.sh
William Petit 97bacd0bb8
Some checks reported warnings
Cadoles/goweb-oidc/pipeline/head This commit was not built
fix: isolated local dev environment
2025-03-07 12:08:07 +01:00

6 lines
166 B
Bash

#!/bin/bash
set -xeo pipefail
echo "CREATE DATABASE IF NOT EXISTS \`hydra\`;" | "${mysql[@]}"
echo "GRANT ALL ON \`hydra\`.* TO '$MYSQL_USER'@'%' ;" | "${mysql[@]}"