| 22 | | my $existing_config = OpenGuides::Config->new( file => "wiki.conf" ); |
| | 22 | my $existing_config_file = 'wiki.conf'; |
| | 23 | my $existing_config; |
| | 24 | |
| | 25 | if (-f $existing_config_file) { |
| | 26 | $existing_config = OpenGuides::Config->new(file => $existing_config_file); |
| | 27 | } else { |
| | 28 | print <<EOF; |
| | 29 | No existing configuration file found; assuming this is a new install. |
| | 30 | If this is not correct, you should press Ctrl-C now, and copy your current |
| | 31 | wiki.conf into the current directory before re-running Build.PL. |
| | 32 | |
| | 33 | EOF |
| | 34 | $existing_config = OpenGuides::Config->new(); |
| | 35 | } |