fixes to $Config changes, also exit if no EVENT_PATH

This commit is contained in:
Isaac Connor 2013-12-19 13:41:55 -05:00
parent 4d9234089c
commit 7251a8e1ae
1 changed files with 7 additions and 2 deletions

View File

@ -163,7 +163,12 @@ if ( !GetOptions( 'filter=s'=>\$filter_parm ) )
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();
@ -178,7 +183,7 @@ else
if ( !$filter_parm )
{
sleep( $Config{START_DELAY} );
sleep( START_DELAY );
}
my $filters;