0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-04-21 11:06:09 +02:00

Implement more elegant solution

Signed-off-by: Alexander Sosna <alexander.sosna@credativ.de>
This commit is contained in:
Alexander Sosna 2020-08-25 14:16:32 +02:00
parent 3cbc36754f
commit 837f75c075

View file

@ -48,7 +48,8 @@ file_env PHP_INI_MEMORY_LIMIT 512M
# Set essential PHP_INI configuration # 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. # 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 expr "$1" : "apache" 1>/dev/null; then
if [ -n "${APACHE_DISABLE_REWRITE_IP+x}" ]; then if [ -n "${APACHE_DISABLE_REWRITE_IP+x}" ]; then