mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
allow Mariadb
This commit is contained in:
15
birdnet-go/rootfs/etc/cont-init.d/33-mariadb.sh
Normal file
15
birdnet-go/rootfs/etc/cont-init.d/33-mariadb.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# shellcheck shell=bash
|
||||
set -e
|
||||
|
||||
# Gives mariadb information
|
||||
|
||||
if bashio::services.available 'mysql'; then
|
||||
bashio::log.green "---"
|
||||
bashio::log.yellow "MariaDB addon is active on your system! If you want to use it instead of sqlite, here are the informations to encode :"
|
||||
bashio::log.blue "Database user : $(bashio::services "mysql" "username")" 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")"
|
||||
bashio::log.green "---"
|
||||
fi
|
||||
Reference in New Issue
Block a user