From a2003fa90f46b73df8ae782b16431a6f1dae6199 Mon Sep 17 00:00:00 2001 From: gau1991 Date: Fri, 10 Apr 2015 12:37:40 +0530 Subject: [PATCH] Fixed install script --- install | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/install b/install index 5bd6d340..982328d9 100644 --- a/install +++ b/install @@ -288,7 +288,10 @@ function ee_update_latest() if [ -f /etc/php5/mods-available/xdebug.ini ]; then ee_debug_value=$(grep -Hr 9001 /etc/nginx/conf.d/upstream.conf | wc -l ) if [ $ee_debug_value -eq 1 ]; then - sed -i "s/zend_extension/;zend_extension" /etc/php5/mods-available/xdebug.ini + grep -Hr ";zend_extension" /etc/php5/mods-available/xdebug.ini + if [ $? -ne 0 ]; then + sed -i "s/zend_extension/;zend_extension" /etc/php5/mods-available/xdebug.ini + fi fi fi }