Skip to content

Commit

Permalink
* Moved the check for the striker source to an earlier position in th…
Browse files Browse the repository at this point in the history
…e install because where it was came too late for the apache docroot files to be copied.

Signed-off-by: Digimer <[email protected]>
  • Loading branch information
Digimer committed Oct 7, 2016
1 parent cf11f47 commit 183b5c2
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions tools/striker-installer
Original file line number Diff line number Diff line change
Expand Up @@ -2118,15 +2118,6 @@ sub configure_striker_tools
mkdir $conf->{directory}{striker_tools} or die "$THIS_FILE ".__LINE__."; Failed to create the directory: [$conf->{directory}{striker_tools}]. The error was: $!\n";
}

if (not -e $conf->{directory}{source})
{
my $test_source = $conf->{directory}{source}."-master";
if (-e $test_source)
{
$conf->{directory}{source} = $test_source;
}
}

# Now copy the tools we want into place, if they're not already there.
logger($conf, $THIS_FILE, __LINE__, "Copying Striker tools and ScanCore into place.", 1);
rsync_files($conf, "$conf->{directory}{source}/striker.conf", "$conf->{directory}{striker_tools}/");
Expand Down Expand Up @@ -2575,6 +2566,16 @@ sub setup_striker
# Download Striker, if needed.
#download_striker($conf);

# If the user installed from github master, we'll need to update the source directory.
if (not -e $conf->{directory}{source})
{
my $test_source = $conf->{directory}{source}."-master";
if (-e $test_source)
{
$conf->{directory}{source} = $test_source;
}
}

# Configure apache.
configure_apache($conf);

Expand Down

0 comments on commit 183b5c2

Please sign in to comment.