From 874a591ec51dfc5accfcd01cc99866bca83fe9e1 Mon Sep 17 00:00:00 2001 From: gau1991 Date: Mon, 13 Oct 2014 16:39:47 +0530 Subject: [PATCH] Fixed Anemometer slow issue in Debain 6 --- bin/update | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/update b/bin/update index ac9c212a..7eb0c836 100644 --- a/bin/update +++ b/bin/update @@ -469,7 +469,7 @@ if [[ $EE_CURRENT_VERSION < $EE_LATEST_VERSION ]]; then # Change Anemometer login details if [ -d /var/www/22222/htdocs/db/anemometer ]; then ee_anemometer_pass=$(grep "password=" /etc/logrotate.d/mysql-server | cut -d"=" -f3 ) - ee_anemometer_pass=$(echo ${ee_anemometer_pass::-2}) + ee_anemometer_pass=$(echo $ee_anemometer_pass | rev | cut -c 3- | rev) # Change Anemometer Hostname in ee_lib_import_slow_log sed -i "s:hostname.*:hostname}=\\\\\"$EE_MYSQL_HOST\\\\\"\" /var/log/mysql/mysql-slow.log:" /usr/local/lib/easyengine/lib/ee_lib_import_slow_log.sh \