.gitignore broken, didn't actually add this file

pull/1/head
Jason Kendall 2020-02-24 13:36:42 -05:00
parent 3902256c9c
commit e7ab8db479
1 changed files with 17 additions and 0 deletions

17
server/files/entrypoint_fpm.sh Executable file
View File

@ -0,0 +1,17 @@
#!/bin/bash
change_php_vars(){
for FILE in /etc/php/*/fpm/php.ini
do
[[ -e $FILE ]] || break
sed -i "s/memory_limit = .*/memory_limit = 2048M/" "$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/post_max_size = .*/post_max_size = 50M/" "$FILE"
done
}
echo "Configure PHP | Change PHP values ..." && change_php_vars
echo "Starting PHP FPM"
/usr/sbin/php-fpm7.3 -R -F