Skip to content
Snippets Groups Projects
Commit 5fcd38a9 authored by Celine Noirot's avatar Celine Noirot
Browse files

Create data link in plugin

parent 02700366
No related branches found
No related tags found
No related merge requests found
......@@ -64,6 +64,7 @@ class AddInstance (Workflow):
NGSPIPELINES_DIST_PLUGIN = os.path.join(NGSPIPELINES_DIST, 'plugins' )
registry_basename = os.path.basename(instance_directory)
subprocess.check_call( self.get_exec_path("cp") + ' -r ' + os.path.join( CURRENT_DIR , '..', '..', 'biomart-plugin', 'theme-rc6/*') + ' ' + os.path.join( NGSPIPELINES_DIST, 'web') , shell = True)
subprocess.check_call( self.get_exec_path("cp") + ' -r ' + NGSPIPELINES_PLUGIN + ' ' + NGSPIPELINES_DIST_PLUGIN , shell = True)
#plugin ngspipelines : storagedir
......@@ -84,6 +85,8 @@ class AddInstance (Workflow):
subprocess.check_call( self.get_exec_path("sed") + " -i -e 's,^biomart\.registry\.file.*,biomart.registry.file = " + os.path.join( 'registry', registry_basename +'.xml' ) + ",' " + os.path.join( NGSPIPELINES_DIST, 'biomart.properties'), shell = True)
subprocess.check_call( self.get_exec_path("sed") + " -i -e 's,^session\.connection.*,session.connection = jdbc:mysql://{host}:{port}/biomart_sessions?user={user}\&password={passwd},' {propfile}".format(
propfile = os.path.join( NGSPIPELINES_DIST, 'biomart.properties'), **ngs_reader.get_database_info() ), shell = True)
#create link data
subprocess.check_call( self.get_exec_path("ln") + ' -s ' + os.path.join( instance_directory , 'data') + ' ' + os.path.join( NGSPIPELINES_DIST_PLUGIN, 'ngspipelines', 'public','ngspipelines' ) , shell = True)
if self.instance_url :
url = re.sub(r':\d+$', '', re.sub( r'\/$', '', str(self.instance_url))) + ':' + str(self.instance_port)
if not url.startswith("http") :
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment