Skip to content

Commit

Permalink
Use /config/data as default #1645
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbelgium authored Nov 22, 2024
1 parent 2b0fbdb commit ca85609
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions nextcloud/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
- Use /addon_configs for config.yaml and nextcloud-ocr.sh to backup them with nextcloud
- Use /config/data as default folder instead of /share/nextcloud for initial set-up
- Use /config/data as default folder instead of /config/data for initial set-up

## 30.0.2 (09-11-2024)
- Update to latest version from linuxserver/docker-nextcloud (changelog : https://github.com/linuxserver/docker-nextcloud/releases)
Expand Down Expand Up @@ -342,7 +342,7 @@
- Repaired increment of trusted domains
- Repaired setting OCR language
- New optional config : enable elasticsearch (requires to run in parallel elasticsearch addon)
- Repaired default data setting in /share/nextcloud
- Repaired default data setting in /config/data

## 22.2.0 (02-10-2021)

Expand Down
2 changes: 1 addition & 1 deletion nextcloud/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \
S6_SERVICES_GRACETIME=0

# Specific modifications
ARG CONFIGLOCATION="/share/nextcloud"
ARG CONFIGLOCATION="/config/data"
# hadolint ignore=SC2015,SC2086
RUN \
# Change default data location
Expand Down
2 changes: 1 addition & 1 deletion nextcloud/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,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.
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).
data_directory: path for the main data directory. Defaults to `/share/nextcloud`. Only used to set permissions and prefill the initial installation template. Once initial installation is done it can't be changed
data_directory: path for the main data directory. Defaults to `/config/data`. Only used to set permissions and prefill the initial installation template. Once initial installation is done it can't be changed
enable_thumbnails: true/false # enable generations of thumbnails for media file (to disable for older systems)
use_own_certs: true/false #if true, use the certfile and keyfile specified
certfile: fullchain.pem #ssl certificate, must be located in /ssl
Expand Down
2 changes: 1 addition & 1 deletion nextcloud/rootfs/etc/cont-init.d/01-folders.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if [ -f /data/config/www/nextcloud/config/config.php ]; then
datadirectory="$(sed -n "s|.*datadirectory.*' => '*\(.*[^ ]\) *',.*|\1|p" /data/config/www/nextcloud/config/config.php)"
echo "... data directory detected : $datadirectory"
else
datadirectory=/share/nextcloud
datadirectory=/config/data
echo "Nextcloud is not installed yet, the default data directory is : $datadirectory. You can change it during nextcloud installation."
fi

Expand Down

0 comments on commit ca85609

Please sign in to comment.