Merge pull request #11662 from octobunny/patch-1
Fixed #6899 Docker container's php configuration isn't congruent with snipe-it uploads setting size.
This commit is contained in:
commit
1763bbfbd3
1 changed files with 1 additions and 0 deletions
|
@ -47,6 +47,7 @@ if [ -v "PHP_UPLOAD_LIMIT" ]
|
||||||
then
|
then
|
||||||
echo "Changing upload limit to ${PHP_UPLOAD_LIMIT}"
|
echo "Changing upload limit to ${PHP_UPLOAD_LIMIT}"
|
||||||
sed -i "s/^upload_max_filesize.*/upload_max_filesize = ${PHP_UPLOAD_LIMIT}M/" /etc/php/*/apache2/php.ini
|
sed -i "s/^upload_max_filesize.*/upload_max_filesize = ${PHP_UPLOAD_LIMIT}M/" /etc/php/*/apache2/php.ini
|
||||||
|
sed -i "s/^post_max_size.*/post_max_size = ${PHP_UPLOAD_LIMIT}M/" /etc/php/*/apache2/php.ini
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If the Oauth DB files are not present copy the vendor files over to the db migrations
|
# If the Oauth DB files are not present copy the vendor files over to the db migrations
|
||||||
|
|
Loading…
Add table
Reference in a new issue