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
This commit is contained in:
lissav 2011-02-11 17:49:49 +00:00
parent 6cda2e7dad
commit f3a660e820

View File

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