From 3d9287de66b01749bdcfb498e42d6167fae7d48e Mon Sep 17 00:00:00 2001 From: Mark J Crane Date: Sun, 26 Mar 2017 10:25:00 -0600 Subject: [PATCH] Fix the sed statements in php.sh --- freebsd/resources/php.sh | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/freebsd/resources/php.sh b/freebsd/resources/php.sh index 3427f80..d0c3d9b 100755 --- a/freebsd/resources/php.sh +++ b/freebsd/resources/php.sh @@ -19,18 +19,14 @@ if [ ."$php_version" = ."7" ]; then verbose "version 7.0" php_ini_file='/etc/php/7.0/fpm/php.ini' fi -sed 's#post_max_size = .*#post_max_size = 80M#g' -i $php_ini_file -sed 's#upload_max_filesize = .*#upload_max_filesize = 80M#g' -i $php_ini_file +sed -i' ' -e 's#post_max_size = .*#post_max_size = 80M#g' $php_ini_file +sed -i' ' -e 's#upload_max_filesize = .*#upload_max_filesize = 80M#g' $php_ini_file #restart php-fpm #systemd if [ ."$php_version" = ."5" ]; then - systemctl restart php5-fpm + service php5-fpm restart fi if [ ."$php_version" = ."7" ]; then - systemctl restart php7.0-fpm + service php7.0-fpm restart fi - -#init.d -#/usr/sbin/service php5-fpm restart -#/usr/sbin/service php7.0-fpm restart