##// END OF EJS Templates
metadata: write license token for license migration for installer.
marcink -
r1524:4f05cb3a default
parent child Browse files
Show More
@@ -148,10 +148,14 b' def write_metadata_if_needed(event):'
148 ini_loc = os.path.dirname(rhodecode.CONFIG.get('__file__'))
148 ini_loc = os.path.dirname(rhodecode.CONFIG.get('__file__'))
149 metadata_destination = os.path.join(ini_loc, fname)
149 metadata_destination = os.path.join(ini_loc, fname)
150
150
151 configuration = system_info.SysInfo(
152 system_info.rhodecode_config)()['value']
153 license_token = configuration['config']['license_token']
151 dbinfo = system_info.SysInfo(system_info.database_info)()['value']
154 dbinfo = system_info.SysInfo(system_info.database_info)()['value']
152 del dbinfo['url']
155 del dbinfo['url']
153 metadata = dict(
156 metadata = dict(
154 desc='upgrade metadata info',
157 desc='upgrade metadata info',
158 license_token=license_token,
155 created_on=datetime.datetime.utcnow().isoformat(),
159 created_on=datetime.datetime.utcnow().isoformat(),
156 usage=system_info.SysInfo(system_info.usage_info)()['value'],
160 usage=system_info.SysInfo(system_info.usage_info)()['value'],
157 platform=system_info.SysInfo(system_info.platform_type)()['value'],
161 platform=system_info.SysInfo(system_info.platform_type)()['value'],
General Comments 0
You need to be logged in to leave comments. Login now