diff --git a/nextcloud/CHANGELOG.md b/nextcloud/CHANGELOG.md index 44336c888..3a40f0f5d 100644 --- a/nextcloud/CHANGELOG.md +++ b/nextcloud/CHANGELOG.md @@ -1,14 +1,18 @@ +- Provides MariaDB addon information to use it as database on first installation - MultiOCR: in OCRLANG field use comma separated value. Ex: fra,deu - Max file size increased to 10Go - New standardized logic for Dockerfile build and packages installation ## 23.0.0 (30-11-2021) + - Update to latest version from linuxserver/docker-nextcloud ## 22.2.3 (16-11-2021) + - Update to latest version from linuxserver/docker-nextcloud ## 22.2.2 (13-11-2021) + - Update to latest version from linuxserver/docker-nextcloud - Repaired use own certs - Repaired increment of trusted domains @@ -17,31 +21,39 @@ - Repaired default data setting in /share/nextcloud ## 22.2.0 (02-10-2021) + - Update to latest version from linuxserver/docker-nextcloud - Faster reboot by only chowning files if user change -- BREAKING CHANGE : comma separated domains instead of list -- Allow usage of own certificates +- BREAKING CHANGE : comma separated domains instead of list +- Allow usage of own certificates - OCR fixed - glibc compatibility added ## 22.1.1 (31-08-2021) + - Update to latest version from linuxserver/docker-nextcloud ## 22.1.0 (07-08-2021) + - Update to latest version from linuxserver/docker-nextcloud ## 22.0.0 (07-07-2021) + - Update to latest version from linuxserver/docker-nextcloud ## 21.0.3 (02-07-2021) + - Update to latest version from linuxserver/docker-nextcloud ## 21.0.2 (20-05-2021) + - Update to latest version from linuxserver/docker-nextcloud ## 21.0.1 + - Update to latest version from linuxserver/docker-nextcloud ## 21.0.0 + - Update to latest version from linuxserver/docker-nextcloud - Enables PUID/GUID options diff --git a/nextcloud/config.json b/nextcloud/config.json index 723f75cd1..44024f9ec 100644 --- a/nextcloud/config.json +++ b/nextcloud/config.json @@ -7,19 +7,11 @@ "ingress": false, "hassio_api": true, "ingress_port": 0, - "arch": [ - "aarch64", - "amd64", - "armv7" - ], + "arch": ["aarch64", "amd64", "armv7"], "description": "Nextcloud for Home Assistant", "boot": "manual", "uart": true, - "map": [ - "share:rw", - "media:rw", - "ssl:rw" - ], + "map": ["share:rw", "media:rw", "ssl:rw"], "ports": { "443/tcp": 8099, "80/tcp": null @@ -39,6 +31,7 @@ "Full_Text_Search": false, "elasticsearch_server": "" }, + "services": ["mysql:want"], "schema": { "PUID": "int", "PGID": "int", diff --git a/nextcloud/rootfs/etc/cont-init.d/99-mariadb_discovery.sh b/nextcloud/rootfs/etc/cont-init.d/99-mariadb_discovery.sh new file mode 100644 index 000000000..2a66ddff5 --- /dev/null +++ b/nextcloud/rootfs/etc/cont-init.d/99-mariadb_discovery.sh @@ -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