Skip to content

Commit

Permalink
A few tweaks to make GBrowse_syn install work out of the box
Browse files Browse the repository at this point in the history
  • Loading branch information
Sheldon McKay committed Apr 29, 2014
1 parent 3c844ce commit f48b028
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions MANIFEST
Expand Up @@ -346,6 +346,7 @@ htdocs/images/help/overview+detail.png
htdocs/images/help/overview.gif htdocs/images/help/overview.gif
htdocs/images/help/remote.png htdocs/images/help/remote.png
htdocs/images/help/search+settings.gif htdocs/images/help/search+settings.gif
htdocs/images/help/sugarcane_sorghum_synteny.png
htdocs/images/help/track+settings.gif htdocs/images/help/track+settings.gif
htdocs/images/help/upload+edit.gif htdocs/images/help/upload+edit.gif
htdocs/images/help/upload+remote.gif htdocs/images/help/upload+remote.gif
Expand Down
4 changes: 2 additions & 2 deletions conf/synteny/oryza.synconf.disabled.conf
Expand Up @@ -2,7 +2,7 @@
description = BLASTZ alignments for Oryza sativa description = BLASTZ alignments for Oryza sativa


# The synteny database # The synteny database
join = dbi:mysql:database=rice_synteny;host=localhost join = dbi:mysql:database=rice_synteny;host=localhost;user='www-data'


# This option maps the relationship between the species data sources, names and descriptions # This option maps the relationship between the species data sources, names and descriptions
# The value for "name" (the first column) is the symbolic name that gbrowse_syn users to identify each species. # The value for "name" (the first column) is the symbolic name that gbrowse_syn users to identify each species.
Expand All @@ -15,7 +15,7 @@ join = dbi:mysql:database=rice_synteny;host=localhost
source_map = rice rice_synteny "Domesic Rice (O. sativa)" source_map = rice rice_synteny "Domesic Rice (O. sativa)"
wild_rice wild_rice_synteny "Wild Rice" wild_rice wild_rice_synteny "Wild Rice"


tmpimages = /tmp/gbrowse_syn tmpimages = /gbrowse2/tmp/gbrowse_syn
imagewidth = 800 imagewidth = 800
stylesheet = /gbrowse2/css/gbrowse_transparent.css stylesheet = /gbrowse2/css/gbrowse_transparent.css
cache time = 1 cache time = 1
Expand Down
2 changes: 1 addition & 1 deletion conf/synteny/rice_synteny.conf
Expand Up @@ -6,7 +6,7 @@ db_args = -adaptor memory




# Web site configuration info # Web site configuration info
tmpimages = /tmp/gbrowse_syn tmpimages = /gbrowse2/tmp/gbrowse_syn


[EG] [EG]
feature = gene:ensembl feature = gene:ensembl
Expand Down
2 changes: 1 addition & 1 deletion conf/synteny/wild_rice_synteny.conf
Expand Up @@ -6,7 +6,7 @@ db_args = -adaptor memory




# Web site configuration info # Web site configuration info
tmpimages = /tmp/gbrowse_syn tmpimages = /gbrowse2/tmp/gbrowse_syn


################## TRACK CONFIGURATION #################### ################## TRACK CONFIGURATION ####################
# the remainder of the sections configure individual tracks # the remainder of the sections configure individual tracks
Expand Down
3 changes: 3 additions & 0 deletions install_util/GBrowseInstall.pm
Expand Up @@ -477,6 +477,7 @@ sub ACTION_install {
# fix some directories so that www user can write into them # fix some directories so that www user can write into them
my $tmp = $self->config_data('tmp') || GBrowseGuessDirectories->tmp; my $tmp = $self->config_data('tmp') || GBrowseGuessDirectories->tmp;
mkpath($tmp); mkpath($tmp);

my ($uid,$gid) = (getpwnam($user))[2,3]; my ($uid,$gid) = (getpwnam($user))[2,3];


# taint check issues # taint check issues
Expand All @@ -491,11 +492,13 @@ sub ACTION_install {


my $htdocs_i = File::Spec->catfile($self->install_path->{htdocs},'i'); my $htdocs_i = File::Spec->catfile($self->install_path->{htdocs},'i');
my $images = File::Spec->catfile($tmp,'images'); my $images = File::Spec->catfile($tmp,'images');
my $gbs_tmp = File::Spec->catfile($self->install_path->{htdocs},'tmp');
my $htdocs = $self->install_path->{htdocs}; my $htdocs = $self->install_path->{htdocs};
chown $uid,-1,$htdocs; chown $uid,-1,$htdocs;
{ {
local $> = $uid; local $> = $uid;
symlink($images,$htdocs_i); # so symlinkifowner match works! symlink($images,$htdocs_i); # so symlinkifowner match works!
symlink($tmp,$gbs_tmp);
} }
chown $>,-1,$self->install_path->{htdocs}; chown $>,-1,$self->install_path->{htdocs};


Expand Down

0 comments on commit f48b028

Please sign in to comment.