From f32cdf3efc2589818e364de2cf35f1a8a34dea43 Mon Sep 17 00:00:00 2001 From: Kazuhiko Shiozaki <kazuhiko@nexedi.com> Date: Fri, 29 Jun 2012 15:55:44 +0200 Subject: [PATCH] need to use root user to flush logs. --- slapos/recipe/mysql/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slapos/recipe/mysql/__init__.py b/slapos/recipe/mysql/__init__.py index 8624d0815..e8c8d8201 100644 --- a/slapos/recipe/mysql/__init__.py +++ b/slapos/recipe/mysql/__init__.py @@ -58,7 +58,7 @@ class Recipe(GenericBaseRecipe): post_rotate = self.createPythonScript( self.options['logrotate-post'], 'slapos.recipe.librecipe.execute.execute', - [mysql_binary, '--no-defaults', '-B', '--socket=%s' % socket, '-e', + [mysql_binary, '--no-defaults', '-B', '-u', 'root', '--socket=%s' % socket, '-e', 'FLUSH LOGS'] ) path_list.append(post_rotate) -- 2.30.9