From 2cc1d00a5764e100f4a6ecd09de56199ca9c6121 Mon Sep 17 00:00:00 2001 From: gau1991 Date: Fri, 19 Sep 2014 18:59:50 +0530 Subject: [PATCH] Rename --import-slow-log-time to --import-slow-log-interval, Fixes #310 --- bin/easyengine | 2 +- config/bash_completion.d/ee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/easyengine b/bin/easyengine index 130cdca4..f4352a75 100644 --- a/bin/easyengine +++ b/bin/easyengine @@ -639,7 +639,7 @@ elif [ "$EE_FIRST" = "debug" ]; then [ "$ee_debug_args" = "--fpm" ] && EE_DEBUG_FPM=$ee_debug_args && echo EE_DEBUG_FPM = $EE_DEBUG_FPM &>> $EE_COMMAND_LOG [ "$ee_debug_args" = "--mysql" ] && EE_DEBUG_MYSQL=$ee_debug_args && echo EE_DEBUG_MYSQL = $EE_DEBUG_MYSQL &>> $EE_COMMAND_LOG [ "$ee_debug_args" = "--wp" ] && EE_DEBUG_WP=$ee_debug_args && echo EE_DEBUG_WP = $EE_DEBUG_WP &>> $EE_COMMAND_LOG - [ "${ee_debug_args%=*}" = "--import-slow-log-time" ] && EE_DEBUG_IMPORT_SLOW_LOG=$ee_debug_args && echo EE_DEBUG_IMPORT_SLOW_LOG = $EE_DEBUG_IMPORT_SLOW_LOG &>> $EE_COMMAND_LOG + [ "${ee_debug_args%=*}" = "--import-slow-log-interval" ] && EE_DEBUG_IMPORT_SLOW_LOG=$ee_debug_args && echo EE_DEBUG_IMPORT_SLOW_LOG = $EE_DEBUG_IMPORT_SLOW_LOG &>> $EE_COMMAND_LOG if [ "$ee_debug_args" != "debug" ] && [ "$ee_debug_args" != "-i" ] && [ "$ee_debug_args" != "--start" ] && [ "$ee_debug_args" != "--stop" ] && [ "$ee_debug_args" != "--nginx" ] && [ "$ee_debug_args" != "--rewrite" ] && [ "$ee_debug_args" != "--php" ] && [ "$ee_debug_args" != "--fpm" ] && [ "$ee_debug_args" != "--mysql" ] && [ "$ee_debug_args" != "--wp" ]; then ls /etc/nginx/sites-available/ | grep $ee_debug_args &>> $EE_COMMAND_LOG if [ $? -eq 0 ]; then diff --git a/config/bash_completion.d/ee b/config/bash_completion.d/ee index 565130f5..60829e64 100644 --- a/config/bash_completion.d/ee +++ b/config/bash_completion.d/ee @@ -66,7 +66,7 @@ function EE_AUTO() return 0 ;; --mysql) - COMPREPLY=( $(compgen -W '$(echo --import-slow-log-time=; cd /usr/local/lib/easyengine/modules/debug/; find -type f | grep debug | cut -d'_' -f4 | cut -d '.' -f1 | sed 's/^/--/g' 2> /dev/null)' -- $CURRENT) ) + COMPREPLY=( $(compgen -W '$(echo --import-slow-log-interval=; cd /usr/local/lib/easyengine/modules/debug/; find -type f | grep debug | cut -d'_' -f4 | cut -d '.' -f1 | sed 's/^/--/g' 2> /dev/null)' -- $CURRENT) ) return 0 ;;