mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-08 16:45:56 +02:00
Create mariadb database
This commit is contained in:
@@ -43,6 +43,9 @@ case $(bashio::config 'DB_TYPE') in
|
|||||||
bashio::log.warning "Webtrees is using the Maria DB addon"
|
bashio::log.warning "Webtrees is using the Maria DB addon"
|
||||||
bashio::log.warning "Please ensure this is included in your backups"
|
bashio::log.warning "Please ensure this is included in your backups"
|
||||||
bashio::log.warning "Uninstalling the MariaDB addon will remove any data"
|
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)
|
external)
|
||||||
|
|||||||
Reference in New Issue
Block a user