Temp fix for bugzilla 73119, chown root:named to /var/lib/named dir, which is the default DNS working dir on SLES. This is just a temp workaround in xcat code before we get response from SuSE.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10114 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
sjing 2011-07-19 06:26:52 +00:00
parent 1e7f4bed43
commit 6292010005

View File

@ -517,6 +517,8 @@ sub get_dbdir {
} elsif (-d "/var/named") {
return "/var/named/";
} elsif (-d "/var/lib/named") {
# Temp fix for bugzilla 73119
chown(scalar(getpwnam('root')),scalar(getgrnam('named')),"/var/lib/named");
return "/var/lib/named/";
} else {
mkpath "/var/named/";