From b22f8574a8171ffa781c00d964a41f4e48800888 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 14 Feb 2023 07:12:49 +0100 Subject: [PATCH] Update 02-mariadb_discovery.sh --- nextcloud/rootfs/etc/cont-init.d/02-mariadb_discovery.sh | 7 ------- 1 file changed, 7 deletions(-) diff --git a/nextcloud/rootfs/etc/cont-init.d/02-mariadb_discovery.sh b/nextcloud/rootfs/etc/cont-init.d/02-mariadb_discovery.sh index 3d787a616..7559fcd1d 100755 --- a/nextcloud/rootfs/etc/cont-init.d/02-mariadb_discovery.sh +++ b/nextcloud/rootfs/etc/cont-init.d/02-mariadb_discovery.sh @@ -12,11 +12,4 @@ if bashio::services.available 'mysql'; then for var in dbtype dbname dbuser dbhost; do sed -i "/$var/d" /defaults/config.php 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