From 4b2c3832c913ef0b4a267f14c55d8bbc866e7c70 Mon Sep 17 00:00:00 2001 From: Mitesh Shah Date: Mon, 16 Jun 2014 14:03:03 +0530 Subject: [PATCH] Fixed drop database if not exits error --- src/vendor/ee_ven_remove_utils.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/vendor/ee_ven_remove_utils.sh b/src/vendor/ee_ven_remove_utils.sh index 54686344..5772c4da 100644 --- a/src/vendor/ee_ven_remove_utils.sh +++ b/src/vendor/ee_ven_remove_utils.sh @@ -8,9 +8,6 @@ function ee_ven_remove_utils() || ee_lib_error "Unable to remove EasyEngine (ee) admin utilities" # Drop Anemometer database - mysql -e "show databases like 'slow_query_log'" &>> $EE_COMMAND_LOG - if [ $? -eq 0 ]; then - mysql -e "drop database slow_query_log" \ - || ee_lib_error "Unable to drop slow_query_log database, exit status = " $? - fi + mysql -e "drop database if exists slow_query_log" \ + || ee_lib_error "Unable to drop slow_query_log database, exit status = " $? }