X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=site_perl%2FConf.pm;h=9cc0d900e0116116720832f2de174542bf71e8c7;hb=8f4617e35f89b741b8ab5ba9136667b4c877d992;hp=96a284f78c15d64bf3151e2bc1e5896d43432e25;hpb=dbc31295b1b0b442e6e5cfc6cf64123ef1141c31;p=freeside.git diff --git a/site_perl/Conf.pm b/site_perl/Conf.pm index 96a284f78..9cc0d900e 100644 --- a/site_perl/Conf.pm +++ b/site_perl/Conf.pm @@ -53,7 +53,12 @@ Returns the directory. sub dir { my($self) = @_; - $self->{dir}; + my $dir = $self->{dir}; + -e $dir or die "FATAL: $dir doesn't exist!"; + -d $dir or die "FATAL: $dir isn't a directory!"; + -r $dir or die "FATAL: Can't read $dir!"; + -x $dir or die "FATAL: $dir not searchable (executable)!"; + $dir; } =item config @@ -107,7 +112,10 @@ Ivan Kohler 98-sep-6 sub exists forgot to fetch $dir ivan@sisd.com 98-sep-27 $Log: Conf.pm,v $ -Revision 1.2 1998-11-13 04:08:44 ivan +Revision 1.3 1999-03-29 01:29:33 ivan +die unless the configuration directory exists + +Revision 1.2 1998/11/13 04:08:44 ivan no default default_dir (ironic)