mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-09 17:15:57 +02:00
Add data directory option on NextCloud
This commit is contained in:
@@ -37,6 +37,7 @@ PGID/PUID : 1000 #allows setting user.
|
|||||||
trusted_domains : your-domain.com #allows to select the trusted domains. Domains not in this lis will be removed, except for the first one used in the initial configuration.
|
trusted_domains : your-domain.com #allows to select the trusted domains. Domains not in this lis will be removed, except for the first one used in the initial configuration.
|
||||||
OCR : false #set to true to install tesseract-ocr capability.
|
OCR : false #set to true to install tesseract-ocr capability.
|
||||||
OCRLANG : fra,eng #Any language can be set from this page (always three letters) [here](https://tesseract-ocr.github.io/tessdoc/Data-Files#data-files-for-version-400-november-29-2016).
|
OCRLANG : fra,eng #Any language can be set from this page (always three letters) [here](https://tesseract-ocr.github.io/tessdoc/Data-Files#data-files-for-version-400-november-29-2016).
|
||||||
|
data_directory: path for the main data directory. Defaults to `/share/nextcloud`.
|
||||||
use_own_certs : true/false #if true, use the certfile and keyfile specified
|
use_own_certs : true/false #if true, use the certfile and keyfile specified
|
||||||
certfile: fullchain.pem #ssl certificate, must be located in /ssl
|
certfile: fullchain.pem #ssl certificate, must be located in /ssl
|
||||||
keyfile: privkey.pem #sslkeyfile, must be located in /ssl
|
keyfile: privkey.pem #sslkeyfile, must be located in /ssl
|
||||||
|
|||||||
@@ -25,6 +25,7 @@
|
|||||||
"use_own_certs": false,
|
"use_own_certs": false,
|
||||||
"certfile": "fullchain.pem",
|
"certfile": "fullchain.pem",
|
||||||
"keyfile": "privkey.pem",
|
"keyfile": "privkey.pem",
|
||||||
|
"data_directory": "/share/nextcloud",
|
||||||
"trusted_domains": "your-domain, your-domain2",
|
"trusted_domains": "your-domain, your-domain2",
|
||||||
"OCR": false,
|
"OCR": false,
|
||||||
"OCRLANG": "fra",
|
"OCRLANG": "fra",
|
||||||
@@ -38,6 +39,7 @@
|
|||||||
"use_own_certs": "bool",
|
"use_own_certs": "bool",
|
||||||
"certfile": "str",
|
"certfile": "str",
|
||||||
"keyfile": "str",
|
"keyfile": "str",
|
||||||
|
"data_directory": "str",
|
||||||
"OCR": "bool?",
|
"OCR": "bool?",
|
||||||
"OCRLANG": "str?",
|
"OCRLANG": "str?",
|
||||||
"Full_Text_Search": "bool?",
|
"Full_Text_Search": "bool?",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
$CONFIG = array (
|
$CONFIG = array (
|
||||||
'memcache.local' => '\OC\Memcache\APCu',
|
'memcache.local' => '\OC\Memcache\APCu',
|
||||||
'datadirectory' => '/share/nextcloud',
|
'datadirectory' => '%%datadirectory%%',
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bash
|
||||||
|
|
||||||
|
# Change data directory
|
||||||
|
datadirectory=$(bashio::config 'data_directory')
|
||||||
|
sed -i "s/%%datadirectory%%/${datadirectory}/g" /defaults/config.php
|
||||||
|
|
||||||
# copy config
|
# copy config
|
||||||
[[ ! -f /data/config/www/nextcloud/config/config.php ]] && \
|
[[ ! -f /data/config/www/nextcloud/config/config.php ]] && \
|
||||||
cp /defaults/config.php /data/config/www/nextcloud/config/config.php
|
cp /defaults/config.php /data/config/www/nextcloud/config/config.php
|
||||||
|
|||||||
Reference in New Issue
Block a user