Bug delete

This commit is contained in:
Alan Garcia 2011-02-03 12:41:58 +00:00
parent df5260fc02
commit 940b95fa2d
1 changed files with 1 additions and 1 deletions

View File

@ -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