Use globs fixes #11

pull/1/head
Jason Kendall 2020-02-12 08:51:41 -05:00
parent 693fae2892
commit eeeec0264a
1 changed files with 2 additions and 1 deletions

View File

@ -13,8 +13,9 @@ ENTRYPOINT_PID_FILE="/entrypoint_apache.install"
[ ! -f $ENTRYPOINT_PID_FILE ] && touch $ENTRYPOINT_PID_FILE [ ! -f $ENTRYPOINT_PID_FILE ] && touch $ENTRYPOINT_PID_FILE
change_php_vars(){ change_php_vars(){
for FILE in $(ls /etc/php/*/apache2/php.ini) for FILE in /etc/php/*/apache2/php.ini
do do
[[ -e $FILE ]] || break
sed -i "s/memory_limit = .*/memory_limit = 2048M/" "$FILE" sed -i "s/memory_limit = .*/memory_limit = 2048M/" "$FILE"
sed -i "s/max_execution_time = .*/max_execution_time = 300/" "$FILE" sed -i "s/max_execution_time = .*/max_execution_time = 300/" "$FILE"
sed -i "s/upload_max_filesize = .*/upload_max_filesize = 50M/" "$FILE" sed -i "s/upload_max_filesize = .*/upload_max_filesize = 50M/" "$FILE"