mirror of
https://github.com/nextcloud/docker.git
synced 2025-04-21 03:06:08 +02:00
Merge 03f766b997
into dfb538c5c7
This commit is contained in:
commit
b72d56d2cb
2 changed files with 9 additions and 0 deletions
|
@ -145,6 +145,10 @@ You might also want to make sure the htaccess is up to date after each container
|
||||||
|
|
||||||
- `NEXTCLOUD_INIT_HTACCESS` (not set by default) Set it to true to enable run `occ maintenance:update:htaccess` after container initialization.
|
- `NEXTCLOUD_INIT_HTACCESS` (not set by default) Set it to true to enable run `occ maintenance:update:htaccess` after container initialization.
|
||||||
|
|
||||||
|
To set the default phone region in the configuration you can use this variable
|
||||||
|
|
||||||
|
- `NEXTCLOUD_DEFAULT_PHONE_REGION` (not set by default) set it to a valid [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) to run `occ config:system:set --value XX default_phone_region` after container initialization.
|
||||||
|
|
||||||
If you want to use Redis you have to create a separate [Redis](https://hub.docker.com/_/redis/) container in your setup / in your docker-compose file. To inform Nextcloud about the Redis container, pass in the following parameters:
|
If you want to use Redis you have to create a separate [Redis](https://hub.docker.com/_/redis/) container in your setup / in your docker-compose file. To inform Nextcloud about the Redis container, pass in the following parameters:
|
||||||
|
|
||||||
- `REDIS_HOST` (not set by default) Name of Redis container
|
- `REDIS_HOST` (not set by default) Name of Redis container
|
||||||
|
|
|
@ -246,6 +246,11 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
|
||||||
run_as 'php /var/www/html/occ maintenance:update:htaccess'
|
run_as 'php /var/www/html/occ maintenance:update:htaccess'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Add phone region if present
|
||||||
|
if [ -n "${NEXTCLOUD_DEFAULT_PHONE_REGION}" ]; then
|
||||||
|
run_as "php /var/www/html/occ config:system:set --value $NEXTCLOUD_DEFAULT_PHONE_REGION default_phone_region"
|
||||||
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exec "$@"
|
exec "$@"
|
||||||
|
|
Loading…
Add table
Reference in a new issue