mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-01 05:14:04 +02:00
Update 02-mariadb_discovery.sh
This commit is contained in:
@@ -12,11 +12,4 @@ if bashio::services.available 'mysql'; then
|
|||||||
for var in dbtype dbname dbuser dbhost; do
|
for var in dbtype dbname dbuser dbhost; do
|
||||||
sed -i "/$var/d" /defaults/config.php
|
sed -i "/$var/d" /defaults/config.php
|
||||||
done
|
done
|
||||||
|
|
||||||
# Prefill MariaDb infos
|
|
||||||
sed -i "2a \ \ 'dbtype' => 'mysql'," /defaults/config.php
|
|
||||||
sed -i "2a \ \ 'dbname' => 'nextcloud'," /defaults/config.php
|
|
||||||
sed -i "2a \ \ 'dbuser' => '$(bashio::services "mysql" "username")'," /defaults/config.php
|
|
||||||
sed -i "2a \ \ 'dbhost' => '$(bashio::services "mysql" "host"):$(bashio::services "mysql" "port")'," /defaults/config.php
|
|
||||||
sed -i "2a \ \ 'dbpassword' => '$(bashio::services "mysql" "password")'," /defaults/config.php
|
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user