Commit 0532b434 authored by Łukasz Nowak's avatar Łukasz Nowak

Use generic execute_wait wrapper for stunnel.

parent bd8c08f2
...@@ -220,9 +220,10 @@ class Recipe(BaseSlapRecipe): ...@@ -220,9 +220,10 @@ class Recipe(BaseSlapRecipe):
self.substituteTemplate(template_filename, self.substituteTemplate(template_filename,
stunnel_conf)) stunnel_conf))
wrapper = zc.buildout.easy_install.scripts([('stunnel', wrapper = zc.buildout.easy_install.scripts([('stunnel',
'slapos.recipe.librecipe.execute', 'execute')], self.ws, sys.executable, 'slapos.recipe.librecipe.execute', 'execute_wait')], self.ws,
self.wrapper_directory, arguments=[ sys.executable, self.wrapper_directory, arguments=[
self.options['stunnel_binary'].strip(), stunnel_conf_path] [self.options['stunnel_binary'].strip(), stunnel_conf_path],
[ca_certificate, key]]
)[0] )[0]
self.path_list.append(wrapper) self.path_list.append(wrapper)
......
...@@ -220,9 +220,10 @@ class Recipe(BaseSlapRecipe): ...@@ -220,9 +220,10 @@ class Recipe(BaseSlapRecipe):
self.substituteTemplate(template_filename, self.substituteTemplate(template_filename,
stunnel_conf)) stunnel_conf))
wrapper = zc.buildout.easy_install.scripts([('stunnel', wrapper = zc.buildout.easy_install.scripts([('stunnel',
'slapos.recipe.librecipe.execute', 'execute')], self.ws, sys.executable, 'slapos.recipe.librecipe.execute', 'execute_wait')], self.ws,
self.wrapper_directory, arguments=[ sys.executable, self.wrapper_directory, arguments=[
self.options['stunnel_binary'].strip(), stunnel_conf_path] [self.options['stunnel_binary'].strip(), stunnel_conf_path],
[ca_certificate, key]]
)[0] )[0]
self.path_list.append(wrapper) self.path_list.append(wrapper)
return stunnel_conf return stunnel_conf
......
...@@ -224,9 +224,10 @@ class Recipe(BaseSlapRecipe): ...@@ -224,9 +224,10 @@ class Recipe(BaseSlapRecipe):
self.substituteTemplate(template_filename, self.substituteTemplate(template_filename,
stunnel_conf)) stunnel_conf))
wrapper = zc.buildout.easy_install.scripts([('stunnel', wrapper = zc.buildout.easy_install.scripts([('stunnel',
'slapos.recipe.librecipe.execute', 'execute')], self.ws, sys.executable, 'slapos.recipe.librecipe.execute', 'execute_wait')], self.ws,
self.wrapper_directory, arguments=[ sys.executable, self.wrapper_directory, arguments=[
self.options['stunnel_binary'].strip(), stunnel_conf_path] [self.options['stunnel_binary'].strip(), stunnel_conf_path],
[ca_certificate, key]]
)[0] )[0]
self.path_list.append(wrapper) self.path_list.append(wrapper)
return stunnel_conf return stunnel_conf
......
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