fixes to $Config changes, also exit if no EVENT_PATH
This commit is contained in:
parent
4d9234089c
commit
7251a8e1ae
|
@ -163,7 +163,12 @@ if ( !GetOptions( 'filter=s'=>\$filter_parm ) )
|
||||||
Usage();
|
Usage();
|
||||||
}
|
}
|
||||||
|
|
||||||
chdir( $Config{EVENT_PATH} );
|
if ( ! EVENT_PATH ) {
|
||||||
|
Error( "No event path defined. Config was $Config{ZM_DIR_EVENTS}\n" );
|
||||||
|
die;
|
||||||
|
}
|
||||||
|
|
||||||
|
chdir( EVENT_PATH );
|
||||||
|
|
||||||
my $dbh = zmDbConnect();
|
my $dbh = zmDbConnect();
|
||||||
|
|
||||||
|
@ -178,7 +183,7 @@ else
|
||||||
|
|
||||||
if ( !$filter_parm )
|
if ( !$filter_parm )
|
||||||
{
|
{
|
||||||
sleep( $Config{START_DELAY} );
|
sleep( START_DELAY );
|
||||||
}
|
}
|
||||||
|
|
||||||
my $filters;
|
my $filters;
|
||||||
|
|
Loading…
Reference in New Issue