From 3bca427fe8b2b16be0d7feb5d027927fd4a82e65 Mon Sep 17 00:00:00 2001 From: Axel ROGER Date: Mon, 15 Oct 2012 09:24:31 +0000 Subject: [PATCH] deleting part put in prod --- src/update_mails.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/update_mails.sh b/src/update_mails.sh index d8f99834..74b31203 100755 --- a/src/update_mails.sh +++ b/src/update_mails.sh @@ -56,13 +56,11 @@ mysql_query "SELECT id, quote(replace(path,'!','\\!')) FROM mailbox WHERE mail_a # If dir and rm ok, DELETE # Other case, do nothing if [ -d $path ] ; then - #$ionice rm -rf $path && mysql_query "DELETE FROM mailbox WHERE id=$id AND mail_action='DELETING';" - echo "directory" + $ionice rm -rf $path && mysql_query "DELETE FROM mailbox WHERE id=$id AND mail_action='DELETING';" # Do the rm again in case of newly added file during delete. Should not be usefull test -d $path && $ionice rm -rf $path else - echo -n "DELETE FROM mailbox WHERE id=$id AND mail_action='DELETING';" - #mysql_query "DELETE FROM mailbox WHERE id=$id AND mail_action='DELETING';" + mysql_query "DELETE FROM mailbox WHERE id=$id AND mail_action='DELETING';" fi done