From f3a660e82033313395e78a75d4ab36f2ba31b4f1 Mon Sep 17 00:00:00 2001 From: lissav Date: Fri, 11 Feb 2011 17:49:49 +0000 Subject: [PATCH] Build the correct directory path for SLES11 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8826 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/sbin/makenamed.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xCAT-server/sbin/makenamed.conf b/xCAT-server/sbin/makenamed.conf index ed4b863d9..928b76054 100755 --- a/xCAT-server/sbin/makenamed.conf +++ b/xCAT-server/sbin/makenamed.conf @@ -4,15 +4,15 @@ DIRECTORY=/var/named if [ -f /etc/SuSE-release ]; then - DIRECTORY=/var/lib + DIRECTORY=/var/lib/named fi FILE=/etc/named.conf #unalias cp if [ -f $FILE ]; then cp -f $FILE ${FILE}.ORIG fi -if [ ! -d /var/named ]; then - mkdir "/var/named" +if [ ! -d $DIRECTORY ]; then + mkdir $DIRECTORY fi echo "options { directory \"$DIRECTORY\";