fix - 6.99.2-6.99.3 upgrade fails if spectre.conf doesn't exist

This commit is contained in:
Roy Johnson 2006-06-21 20:22:53 +00:00
parent 262e57300f
commit 333618efc8
2 changed files with 5 additions and 0 deletions

View file

@ -9,6 +9,7 @@
roughly every 30 hours under certain conditions.
- fix: Problems with page.isSibling and page.inBranch
- Added new EMS event approval states
- Fix: 6.99.2-6.99.3 upgrade fails if spectre.conf doesn't exist
6.99.4
- fix: better checking of selected template type

View file

@ -37,6 +37,10 @@ sub addAssetIndex {
#-------------------------------------------------
sub fixSpectre {
print "\tAdding more security to Spectre.\n" unless ($quiet);
unless (-e "../../etc/spectre.conf") {
print "\t *** Skiping this portion of the upgrade. You do not have a spectre.conf file. Read gotcha.txt for details. ***\n" unless ($quiet);
return;
}
my $config = WebGUI::Config->new("../..","spectre.conf");
$config->set("ip","127.0.0.1");
}