Skip to content

Commit

Permalink
Made the installer disable tworavens in the settings, if the user
Browse files Browse the repository at this point in the history
specifies that this installation isn't going to use tworavens.
  • Loading branch information
landreev committed Mar 8, 2016
1 parent 45f1b08 commit 1fb1ed2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions scripts/installer/install
Original file line number Diff line number Diff line change
Expand Up @@ -1088,7 +1088,8 @@ for my $script ( "setup-all.sh" ) {
print "ok!\n";
}

# If this installation is going to be using TwoRavens, configure its location in the settings:
# If this installation is going to be using TwoRavens, configure its location in the Dataverse settings;
# If not, disable TwoRavens in the settings:

if ($CONFIG_DEFAULTS{'TWORAVENS_LOCATION'} ne 'NOT INSTALLED')
{
Expand All @@ -1098,7 +1099,11 @@ if ($CONFIG_DEFAULTS{'TWORAVENS_LOCATION'} ne 'NOT INSTALLED')
print "WARNING: failed to configure the location of the TwoRavens app in the Dataverse settings!\n\n";
}
} else {
#TODO: set the option disabling tworavens in this Dataverse installation.
my $exit_code = system("curl -X put -d false " . $API_URL . "/admin/settings/:TwoRavensTabularView");
if ( $exit_code )
{
print "WARNING: failed to disable the TwoRavens app in the Dataverse settings!\n\n";
}
}

# If this installation is going to be using a remote SOLR search engine service, configure its location in the settings:
Expand Down

0 comments on commit 1fb1ed2

Please sign in to comment.