|
Revision 1162, 429 bytes
(checked in by dom, 8 months ago)
|
|
Install signal handlers in reindex.pl and CGI scripts to allow
temporary files (eg from Plucene) to be cleaned up. (fixes #247)
|
-
Property svn:eol-style set to
native
-
Property svn:executable set to
*
-
Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 | |
|---|
| 2 | |
|---|
| 3 | use warnings; |
|---|
| 4 | use strict; |
|---|
| 5 | use sigtrap die => 'normal-signals'; |
|---|
| 6 | |
|---|
| 7 | use CGI; |
|---|
| 8 | use OpenGuides::Config; |
|---|
| 9 | use OpenGuides::Search; |
|---|
| 10 | |
|---|
| 11 | my $config_file = $ENV{OPENGUIDES_CONFIG_FILE} || "wiki.conf"; |
|---|
| 12 | my $config = OpenGuides::Config->new( file => $config_file ); |
|---|
| 13 | my $search = OpenGuides::Search->new( config => $config ); |
|---|
| 14 | my %vars = CGI::Vars(); |
|---|
| 15 | $search->run( vars => \%vars ); |
|---|