Skip to content
Permalink
Browse files

Allow larger background images

  • Loading branch information...
NEMS Linux
NEMS Linux committed Feb 27, 2019
1 parent c315af4 commit 5dd65f99e0fab91768c291e6bbef44632b9c6d79
Showing with 10 additions and 0 deletions.
  1. +10 −0 build/036-php
@@ -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.
You can’t perform that action at this time.