Update 99-run.sh

This commit is contained in:
Alexandre
2024-12-06 20:29:56 +01:00
committed by GitHub
parent fb392f13d8
commit 74b7009f48

View File

@@ -42,6 +42,10 @@ case "$database" in
bashio::log.warning "Monica is using the MariaDB 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="$DB_HOST" --port="$DB_PORT" --user="$DB_USERNAME" --password="$DB_PASSWORD" -e"CREATE DATABASE IF NOT EXISTS $DB_DATABASE;"
;;
# Use Mariadb_addon
@@ -60,6 +64,10 @@ case "$database" in
if bashio::services.available 'mysql'; then
bashio::log.warning "The MariaDB addon is available, but you have selected to use your own database by manually configuring the addon options"
fi
# Create database
mysql --host="$DB_HOST" --port="$DB_PORT" --user="$DB_USERNAME" --password="$DB_PASSWORD" -e"CREATE DATABASE IF NOT EXISTS $DB_DATABASE;"
;;
esac