Commit f32cdf3e authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

need to use root user to flush logs.

parent ae5d9e28
...@@ -58,7 +58,7 @@ class Recipe(GenericBaseRecipe): ...@@ -58,7 +58,7 @@ class Recipe(GenericBaseRecipe):
post_rotate = self.createPythonScript( post_rotate = self.createPythonScript(
self.options['logrotate-post'], self.options['logrotate-post'],
'slapos.recipe.librecipe.execute.execute', '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'] 'FLUSH LOGS']
) )
path_list.append(post_rotate) path_list.append(post_rotate)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment