deleting part put in prod

This commit is contained in:
Axel ROGER 2012-10-15 09:24:31 +00:00
parent 65a321b6cc
commit 3bca427fe8
1 changed files with 2 additions and 4 deletions

View File

@ -56,13 +56,11 @@ mysql_query "SELECT id, quote(replace(path,'!','\\!')) FROM mailbox WHERE mail_a
# If dir and rm ok, DELETE # If dir and rm ok, DELETE
# Other case, do nothing # Other case, do nothing
if [ -d $path ] ; then if [ -d $path ] ; then
#$ionice rm -rf $path && mysql_query "DELETE FROM mailbox WHERE id=$id AND mail_action='DELETING';" $ionice rm -rf $path && mysql_query "DELETE FROM mailbox WHERE id=$id AND mail_action='DELETING';"
echo "directory"
# Do the rm again in case of newly added file during delete. Should not be usefull # Do the rm again in case of newly added file during delete. Should not be usefull
test -d $path && $ionice rm -rf $path test -d $path && $ionice rm -rf $path
else 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 fi
done done