Use braces

This commit is contained in:
Bob Mottram 2014-09-26 16:02:38 +01:00
parent fd71e7452f
commit 79d15281e3
1 changed files with 3 additions and 5 deletions

View File

@ -133,7 +133,7 @@ INSTALL_DIR=$HOME/build
USB_DRIVE=/dev/sda1
# memory limit for php in MB
MAX_PHP_MEMORY="32"
MAX_PHP_MEMORY=32
export DEBIAN_FRONTEND=noninteractive
@ -1539,13 +1539,11 @@ function install_web_server {
}
function configure_php {
sed -i "s/memory_limit = 128M/memory_limit = $MAX_PHP_MEMORYM/g" /etc/php5/fpm/php.ini
sed -i "s/memory_limit = 128M/memory_limit = ${MAX_PHP_MEMORY}M/g" /etc/php5/fpm/php.ini
sed -i 's/;cgi.fix_pathinfo=1/cgi.fix_pathinfo=0/g' /etc/php5/fpm/php.ini
sed -i "s/memory_limit = -1/memory_limit = $MAX_PHP_MEMORYM/g" /etc/php5/cli/php.ini
sed -i "s/memory_limit = -1/memory_limit = ${MAX_PHP_MEMORY}M/g" /etc/php5/cli/php.ini
sed -i "s/upload_max_filesize = 2M/upload_max_filesize = 50M/g" /etc/php5/fpm/php.ini
sed -i "s/post_max_size = 8M/post_max_size = 50M/g" /etc/php5/fpm/php.ini
sed -i "s/memory_limit = /memory_limit = $MAX_PHP_MEMORYM/g" /etc/php5/cli/php.ini
sed -i "s/memory_limit = /memory_limit = $MAX_PHP_MEMORYM/g" /etc/php5/fpm/php.ini
}
function install_owncloud {