Update 99-run.sh

This commit is contained in:
Alexandre
2022-12-28 22:50:57 +01:00
committed by GitHub
parent 08fbda17f3
commit 8b51d10e24

View File

@@ -48,6 +48,9 @@ case $(bashio::config 'database') in
export PAPERLESS_DBUSER="$(bashio::services "mysql" "username")"
export PAPERLESS_DBPASS="$(bashio::services "mysql" "password")"
# Create database
mysql --host="$PAPERLESS_DBHOST" --port="$PAPERLESS_DBPORT" --user="$PAPERLESS_DBUSER" --password="$PAPERLESS_DBPASS" -e"CREATE DATABASE IF NOT EXISTS $PAPERLESS_DBNAME;"
# Informations
bashio::log.warning "This addon is using the Maria DB addon"
bashio::log.warning "Please ensure this is included in your backups"