Commit 9d7e9520 authored by Alain Takoudjou's avatar Alain Takoudjou

add home directory for boinc client

parent 60d500dc
......@@ -333,7 +333,7 @@ class Client(GenericBaseRecipe):
def __init__(self, buildout, name, options):
#get current uig to create a unique rpc-port for this client
stat_info = os.stat(options['install-dir'].strip())
stat_info = os.stat(options['home'].strip())
options['rpc-port'] = pwd.getpwuid(stat_info.st_uid)[2] + 5000
return GenericBaseRecipe.__init__(self, buildout, name, options)
......
......@@ -32,6 +32,7 @@ bytes = 8
[boinc-client]
recipe = slapos.cookbook:boinc.client
install-dir = $${basedirectory:boinc}
home = $${buildout:directory}
client-wrapper = $${basedirectory:services}/boinc_client
cmd-wrapper = $${basedirectory:services}/boinc_cmd
#specifie a cc_config.xml file to boinc client, use cconfig
......
......@@ -28,7 +28,7 @@ mode = 0644
# Default template for boinc-client instance.
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-boinc.cfg
md5sum = 147fd101d507c4f8eba9694e25571d4e
md5sum = 359c2dcf415af3428736d31e5a0a30b1
output = ${buildout:directory}/template-boinc.cfg
mode = 0644
......
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