-Move SLES path check to be more dynamic

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1828 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2008-07-02 15:35:12 +00:00
parent 60164a520b
commit eeb4e46b9b

View File

@ -36,9 +36,6 @@ my $dotxt = 0;
my $dontdodomains = 0;
my $Bootfile = "/etc/named.conf";
my $DBDir = "/var/named/";
unless (-d $DBDir) {
$DBDir = " /var/lib/named/";
}
my $Domain = "";
my $Hostfile = "/etc/hosts";
my $Commentfile = "";
@ -64,6 +61,10 @@ my @forwarders;
sub process_request {
$request = shift;
$callback = shift;
$DBDir = "/var/named/";
unless (-d $DBDir) {
$DBDir = " /var/lib/named/";
}
$Host = hostname;
$Host =~ s/\..*//;
my $sitetab = xCAT::Table->new('site');