Changeset 913


Ignore:
Timestamp:
Dec 11, 2006, 5:42:53 PM (15 years ago)
Author:
Dominic Hargreaves
Message:

Fix problem with missing wiki.conf (#162).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Build.PL

    r910 r913  
    2020exit 0 unless $continue;
    2121
    22 my $existing_config = OpenGuides::Config->new( file => "wiki.conf" );
     22my $existing_config_file = 'wiki.conf';
     23my $existing_config;
     24
     25if (-f $existing_config_file) {
     26    $existing_config = OpenGuides::Config->new(file => $existing_config_file);
     27} else {
     28    print <<EOF;
     29No existing configuration file found; assuming this is a new install.
     30If this is not correct, you should press Ctrl-C now, and copy your current
     31wiki.conf into the current directory before re-running Build.PL.
     32
     33EOF
     34    $existing_config = OpenGuides::Config->new();
     35}
    2336
    2437my %yn_vars = map { $_ => 1 }
Note: See TracChangeset for help on using the changeset viewer.