mirror of
https://github.com/snipe/snipe-it.git
synced 2026-02-08 04:25:55 +00:00
[FIX] set upload-limit
This commit is contained in:
committed by
Fabian Schmid
parent
4b58af8850
commit
9de97694c3
@ -101,8 +101,8 @@ chown -R docker:root /var/www/html/storage/framework/cache
|
||||
if [ -v "PHP_UPLOAD_LIMIT" ]
|
||||
then
|
||||
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/^post_max_size.*/post_max_size = ${PHP_UPLOAD_LIMIT}M/" /etc/php/*/apache2/php.ini
|
||||
sed -i "s/^upload_max_filesize.*/upload_max_filesize = ${PHP_UPLOAD_LIMIT}M/" /etc/php*/php.ini
|
||||
sed -i "s/^post_max_size.*/post_max_size = ${PHP_UPLOAD_LIMIT}M/" /etc/php*/php.ini
|
||||
fi
|
||||
|
||||
# If the Oauth DB files are not present copy the vendor files over to the db migrations
|
||||
|
||||
Reference in New Issue
Block a user