summaryrefslogtreecommitdiffstats
path: root/satellit_installer/includes/10-configurations.inc
diff options
context:
space:
mode:
Diffstat (limited to 'satellit_installer/includes/10-configurations.inc')
-rw-r--r--satellit_installer/includes/10-configurations.inc9
1 files changed, 8 insertions, 1 deletions
diff --git a/satellit_installer/includes/10-configurations.inc b/satellit_installer/includes/10-configurations.inc
index 45af103..f9072e0 100644
--- a/satellit_installer/includes/10-configurations.inc
+++ b/satellit_installer/includes/10-configurations.inc
@@ -67,7 +67,7 @@ patch_lighttpd_config() {
patch_php_config() {
echo -n "# Patching php configuration... "
- local PHPINIFILE=/etc/php5/cgi/php.ini
+ local PHPINIFILE=/etc/php/7.0/cgi/php.ini
if [ -f "$PHPINIFILE" ]; then
grep -E "^\s*upload_max_filesize" "$PHPINIFILE" # 2>/dev/null 1>&2
@@ -79,6 +79,13 @@ patch_php_config() {
echo -n "no upload_max_filesize entry found; appending 100M entry... "
echo "upload_max_filesize = 100M" >> "$PHPINIFILE"
fi
+
+ if grep -q -E '^\s*post_max_size' "$PHPINIFILE"; then
+ sed -i -e '/^\s*post_max_size/c\post_max_size = 100M' "$PHPINIFILE" || pwarning "Could not increase PHP upload limit"
+ else
+ echo "post_max_size = 100M" >> "$PHPINIFILE" || pwarning "Could not increase PHP upload limit"
+ fi
+
echo "ok."
service lighttpd reload
else