Commit a1e0d3c4 authored by Alain Takoudjou's avatar Alain Takoudjou

Don't use empty URL_BASE (BOINC)

parent 89d3c7a4
......@@ -101,6 +101,10 @@ class Recipe(GenericBaseRecipe):
niceprojectname = self.project + "@Home"
slapuser = self.options['user']
#Check if given URL is not empty (case of URL request with frontend)
if not self.url_base:
raise Exception("URL_BASE is still empty. Can not use it")
#Define environment variable here
python = os.path.join(self.home, 'bin/python')
python_path = self.boinc_egg
......
......@@ -102,6 +102,8 @@ class Recipe(GenericBaseRecipe):
os.chmod(config_info_file, 0744)
path_list.append(config_info)
update = install
class Client(GenericBaseRecipe):
def install(self):
......
......@@ -34,7 +34,7 @@ eggs =
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-boinc.cfg
output = ${buildout:directory}/template-boinc.cfg
md5sum = 004691e9194eca2fa9cb1033094d3738
md5sum = 20e9e2276e3cbc6504bf065eabbe13a7
mode = 0644
#Template for deploying MySQL Database Server
......
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