mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
allow to set PHP memory_limit via EGW_MEMORY_LIMIT environment variable in container
This commit is contained in:
parent
86bb99e45e
commit
a6a27b8bcf
@ -14,6 +14,11 @@ test -n "$EGW_SESSION_TIMEOUT" && test "$EGW_SESSION_TIMEOUT" -ge 1440 && \
|
||||
sed -e "s/^;\?session.gc_maxlifetime.*/session.gc_maxlifetime=$EGW_SESSION_TIMEOUT/g" \
|
||||
-i /etc/php/7.3/fpm/php.ini
|
||||
|
||||
# if EGW_MEMORY_LIMIT is set in environment, propagate value to php.ini
|
||||
test -n "$EGW_MEMORY_LIMIT" && \
|
||||
sed -e "s/^;\?memory_limit.*/memory_limit=$EGW_MEMORY_LIMIT/g" \
|
||||
-i /etc/php/7.3/fpm/php.ini
|
||||
|
||||
# ToDo check version before copy
|
||||
rsync -a --delete /usr/share/egroupware-sources/ /usr/share/egroupware/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user