Skip to content
Permalink
Browse files

Allow larger background images

  • Loading branch information...
NEMS Linux
NEMS Linux committed Feb 27, 2019
1 parent 6d736db commit 9f2cf31ea8ccdcdc652629b2dea83dca0d62fa1c
Showing with 14 additions and 0 deletions.
  1. +14 −0 fixes.sh
@@ -290,6 +290,20 @@ fi

if (( $(awk 'BEGIN {print ("'$ver'" >= "'1.5'")}') )); then

# Increase upload size for background images
if [[ -e /etc/php/7.3/phpdbg/php.ini ]]; then
if ! grep -q "NEMS00001" /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
fi
if [[ -e /etc/php/7.2/phpdbg/php.ini ]]; then
if ! grep -q "NEMS00001" /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
fi

# Give Adagios access to socket
/bin/sed -i -- 's,livestatus_path = None,livestatus_path = "/usr/local/nagios/var/rw/live.sock",g' /var/www/adagios/settings.py

0 comments on commit 9f2cf31

Please sign in to comment.
You can’t perform that action at this time.