Create mariadb database

This commit is contained in:
Alexandre
2023-08-13 11:35:00 +02:00
committed by GitHub
parent 7252777d1c
commit 078d12a5ad

View File

@@ -43,6 +43,9 @@ case $(bashio::config 'DB_TYPE') in
bashio::log.warning "Webtrees is using the Maria DB addon"
bashio::log.warning "Please ensure this is included in your backups"
bashio::log.warning "Uninstalling the MariaDB addon will remove any data"
# Create database
mysql --host="$(bashio::services 'mysql' 'host')" --port="$(bashio::services 'mysql' 'port')" --user="$(bashio::services "mysql" "username")" --password="$(bashio::services "mysql" "password")" -e"CREATE DATABASE IF NOT EXISTS webtrees;"
;;
external)