Skip to content

Commit

Permalink
Allow larger background images
Browse files Browse the repository at this point in the history
  • Loading branch information
NEMS Linux committed Feb 27, 2019
1 parent c315af4 commit 5dd65f9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions build/036-php
Expand Up @@ -43,6 +43,16 @@ apt install -y $repo php-rrd
# for check_mssql
apt install -y $repo php7.3-sybase

# Increase upload size for background images
if [[ -e /etc/php/7.3/phpdbg/php.ini ]]; then
/bin/sed -i '/post_max_size =/c\; NEMS00001\npost_max_size = 20M' /etc/php/7.3/phpdbg/php.ini
/bin/sed -i '/upload_max_filesize =/c\upload_max_filesize = 16M' /etc/php/7.3/phpdbg/php.ini
fi
if [[ -e /etc/php/7.2/phpdbg/php.ini ]]; then
/bin/sed -i '/post_max_size =/c\; NEMS00001\npost_max_size = 20M' /etc/php/7.2/phpdbg/php.ini
/bin/sed -i '/upload_max_filesize =/c\upload_max_filesize = 16M' /etc/php/7.2/phpdbg/php.ini
fi

echo "Done."

systemctl restart apache2

0 comments on commit 5dd65f9

Please sign in to comment.