From 940b95fa2dab3f902786abf06c3584ae9b9536f8 Mon Sep 17 00:00:00 2001 From: Alan Garcia Date: Thu, 3 Feb 2011 12:41:58 +0000 Subject: [PATCH] Bug delete --- src/update_domains.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/update_domains.sh b/src/update_domains.sh index c91606d3..19e56556 100644 --- a/src/update_domains.sh +++ b/src/update_domains.sh @@ -46,7 +46,7 @@ mysql_query "update sub_domaines sd, domaines d set sd.web_action = 'DELETE' whe # sub_domaines.web_action = delete for sub in $( mysql_query "select concat_ws('$B',lower(sd.type), if(length(sd.sub)>0,concat_ws('.',sd.sub,sd.domaine),sd.domaine)) from sub_domaines sd where web_action ='DELETE';") ; do host_delete ${sub/$B/ } - mysql_query "delete from sub_domaines where concat_ws('$B',if(length(sub)>0,concat_ws('.',sub,domaine),domaine),type) = '$sub' and web_action ='DELETE';" + mysql_query "delete from sub_domaines where concat_ws('$B',lower(type), if(length(sub)>0,concat_ws('.',sub,domaine),domaine)) = '$sub' and web_action ='DELETE';" done # Sub domaines we want to update