Files
hassio-addons/nextcloud/rootfs/etc/cont-init.d/99-mariadb_discovery.sh
Alexandre 42bef66f08 Revert "chmod +x scripts"
This reverts commit 3351e5b29c.
2022-06-15 21:03:13 +02:00

11 lines
635 B
Bash

#!/usr/bin/with-contenv bashio
# shellcheck shell=bash
if bashio::services.available 'mysql'; then
bashio::log.warning "MariaDB addon was found! It can't be configured automatically due to the way Nextcloud works, but you can configure it manually when running the web UI for the first time using those values :"
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