Commit 0a6c3825 authored by Vivien Alger's avatar Vivien Alger

Changing script generation method

parent 91954237
##############################################################################
#
# Copyright (c) 2011 Vifib SARL and Contributors. All Rights Reserved.
......@@ -31,13 +32,19 @@ class MonitorRecipe(GenericBaseRecipe):
def install(self):
options = self.options
script = self.createWrapper(name=options['path'],
command=options['kvm-monitor-path'],
parameters=[
options['filepath'],
options['xml-path'],
options['sections'],
options['options']
])
config = dict(
kvm_monitor_path=options['kvm-monitor-path'],
filepath = options['filepath'],
xml_path = options['xml-path'],
sections = options['sections'],
options = options['options']
)
script = self.createExecutable(
options['path'],
self.substituteTemplate(
self.getTemplateFilename('kvm_monitor_run.in'),config
)
)
return [script]
#!/bin/sh
exec %(kvm_monitor_path)s %(filepath)s %(xml_path)s -s %(sections)s --opts %(options)s
\ No newline at end of file
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