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\";