mirror of
https://github.com/nextcloud/docker.git
synced 2025-04-21 19:16:09 +02:00
Implement more elegant solution
Signed-off-by: Alexander Sosna <alexander.sosna@credativ.de>
This commit is contained in:
parent
3cbc36754f
commit
837f75c075
1 changed files with 2 additions and 1 deletions
|
@ -48,7 +48,8 @@ file_env PHP_INI_MEMORY_LIMIT 512M
|
|||
|
||||
# Set essential PHP_INI configuration
|
||||
# It is important to set essential variables like 'memory-limit' before the first start to premvent OOM during installation and statup.
|
||||
echo "memory_limit=${PHP_INI_MEMORY_LIMIT}" > /usr/local/etc/php/conf.d/memory-limit.ini;
|
||||
file_memory_limit=/usr/local/etc/php/conf.d/memory-limit.ini
|
||||
[ -s ${file_memory_limit} ] || echo "memory_limit=${PHP_INI_MEMORY_LIMIT}" > ${file_memory_limit}
|
||||
|
||||
if expr "$1" : "apache" 1>/dev/null; then
|
||||
if [ -n "${APACHE_DISABLE_REWRITE_IP+x}" ]; then
|
||||
|
|
Loading…
Add table
Reference in a new issue