mirror of
https://github.com/nextcloud/vm.git
synced 2025-10-26 11:27:32 +00:00
Increase max file size (1000 MB)
This commit is contained in:
parent
0dc2a3abb5
commit
e643a5f68c
@ -362,6 +362,18 @@ sed -i "s|post_max_size = 8M|post_max_size = 1100M|g" /etc/php/7.0/apache2/php.i
|
||||
# upload_max
|
||||
sed -i "s|upload_max_filesize = 2M|upload_max_filesize = 1000M|g" /etc/php/7.0/apache2/php.ini
|
||||
|
||||
# Increase max filesize (expects that changes are made in /etc/php/7.0/apache2/php.ini)
|
||||
# Here is a guide: https://www.techandme.se/increase-max-file-size/
|
||||
VALUE="# php_value upload_max_filesize 513M"
|
||||
if grep -Fxq "$VALUE" $NCPATH/.htaccess
|
||||
then
|
||||
echo "Value correct"
|
||||
else
|
||||
sed -i 's/ php_value upload_max_filesize 513M/# php_value upload_max_filesize 513M/g' $NCPATH/.htaccess
|
||||
sed -i 's/ php_value post_max_size 513M/# php_value post_max_size 513M/g' $NCPATH/.htaccess
|
||||
sed -i 's/ php_value memory_limit 512M/# php_value memory_limit 512M/g' $NCPATH/.htaccess
|
||||
fi
|
||||
|
||||
# Install Figlet
|
||||
apt install figlet -y
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user