From 17eebdf133a80b9934d8b40be471292523b0407d Mon Sep 17 00:00:00 2001 From: Mitesh Shah Date: Mon, 31 Mar 2014 17:33:04 +0530 Subject: [PATCH] fix if statement --- usr/local/sbin/easyengine | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/local/sbin/easyengine b/usr/local/sbin/easyengine index 470b1e2c..7d719e40 100644 --- a/usr/local/sbin/easyengine +++ b/usr/local/sbin/easyengine @@ -1637,7 +1637,7 @@ DEBUG_PHP_STOP() if [ $? -eq 0 ] then echo -e "\033[34mDisable Xdebug, Please Wait...\e[0m" - sed "/xdebug.profiler_/d" /etc/php5/fpm/conf.d/20-xdebug.ini + sed -i "/xdebug.profiler_/d" /etc/php5/fpm/conf.d/20-xdebug.ini # Lets Trigger The PHP5-FPM Restart EE_DEBUG_PHP="--php" @@ -1664,7 +1664,7 @@ DEBUG_PHP_FPM() DEBUG_PHP_FPM_STOP() { grep "log_level = notice" /etc/php5/fpm/php-fpm.conf &>> $INSTALLLOG - if [ $? -nq 0 ] + if [ $? -ne 0 ] then # Disable PHP5-FPM Error Logs In Debug Mode echo -e "\033[34mStopping PHP5-FPM Log Level In Debug Mode, Please Wait...\e[0m"