From 79d15281e31e0f5bb0adad67b0c91db075f1bb6d Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 26 Sep 2014 16:02:38 +0100 Subject: [PATCH] Use braces --- install-freedombone.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/install-freedombone.sh b/install-freedombone.sh index f099566f..06c635ed 100755 --- a/install-freedombone.sh +++ b/install-freedombone.sh @@ -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 {