diff --git a/wcs/ctl/check_hobos.py b/wcs/ctl/check_hobos.py index 2e5636625..e9d9c4dff 100644 --- a/wcs/ctl/check_hobos.py +++ b/wcs/ctl/check_hobos.py @@ -274,6 +274,18 @@ class CmdCheckHobos(Command): # Use the first fargo found and stop break + try: + portal_agent_url = config.get('variables', 'portal_agent_url') + except ConfigParser.NoOptionError: + pass + else: + if portal_agent_url.endswith('/'): + portal_agent_url = portal_agent_url.rstrip('/') + extra_head = ''''''\ + '''''' % ( + portal_agent_url, portal_agent_url) + config.set('options', 'backoffice_extra_head', extra_head) + with open(site_options_filepath, 'wb') as site_options: config.write(site_options)