Skip to content

Commit 76c1920

Browse files
authored
Merge pull request #16806 from chfsx/patch-1
[FIX] set upload-limit
2 parents ada8195 + 9de9769 commit 76c1920

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docker/startup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ chown -R docker:root /var/www/html/storage/framework/cache
101101
if [ -v "PHP_UPLOAD_LIMIT" ]
102102
then
103103
echo "Changing upload limit to ${PHP_UPLOAD_LIMIT}"
104-
sed -i "s/^upload_max_filesize.*/upload_max_filesize = ${PHP_UPLOAD_LIMIT}M/" /etc/php/*/apache2/php.ini
105-
sed -i "s/^post_max_size.*/post_max_size = ${PHP_UPLOAD_LIMIT}M/" /etc/php/*/apache2/php.ini
104+
sed -i "s/^upload_max_filesize.*/upload_max_filesize = ${PHP_UPLOAD_LIMIT}M/" /etc/php*/php.ini
105+
sed -i "s/^post_max_size.*/post_max_size = ${PHP_UPLOAD_LIMIT}M/" /etc/php*/php.ini
106106
fi
107107

108108
# If the Oauth DB files are not present copy the vendor files over to the db migrations

0 commit comments

Comments
 (0)