Skip to content
Browse files

Creates the log directory if it does not exist

  • Loading branch information...
1 parent 5a9cb72 commit 50b4d96f9949887a8d4e3d697104eb8e01b94422 @russoz russoz committed Nov 21, 2010
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/Net/LDAP/SimpleServer.pm
View
2 lib/Net/LDAP/SimpleServer.pm
@@ -34,6 +34,8 @@ use constant LOGDIR => File::Spec->catfile( BASEDIR, 'log' );
use constant DEFAULT_CONFIG_FILE => File::Spec->catfile( BASEDIR, 'config' );
use constant DEFAULT_DATA_FILE => File::Spec->catfile( BASEDIR, 'server.ldif' );
+make_path(LOGDIR);
+
my $_add_option = sub {
my ( $template, $prop, $opt, $initial ) = @_;

0 comments on commit 50b4d96

Please sign in to comment.
Something went wrong with that request. Please try again.