Allow mariadb addon

This commit is contained in:
Alexandre
2021-12-28 10:03:45 +01:00
parent ce353d091a
commit 613b23cabb
3 changed files with 26 additions and 12 deletions

View File

@@ -0,0 +1,9 @@
#!/usr/bin/with-contenv bashio
if bashio::services.available 'mysql'; then
bashio::log.warning "MariaDB addon was found! It can't be configured automatically, but you can configure it manually using those values in the initial set-up :"
bashio::log.blue "Database user : $(bashio::services "mysql" "username")"
bashio::log.blue "Database password : $(bashio::services "mysql" "password")"
bashio::log.blue "Database name : nextcloud"
bashio::log.blue "Host-name : $(bashio::services "mysql" "host"):$(bashio::services "mysql" "port")"
fi