fix to support SuSE

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2731 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2009-02-12 14:18:06 +00:00
parent b15d4000ec
commit ca750fb268

View File

@ -1,7 +1,12 @@
#!/bin/sh
FILE=/etc/named.conf
DIRECTORY=/var/named
if [ -f /etc/SuSE-release ]; then
DIRECTORY=/var/lib
fi
FILE=/etc/named.conf
#unalias cp
if [ -f $FILE ]; then
cp -f $FILE ${FILE}.ORIG
@ -10,10 +15,10 @@ if [ ! -d /var/named ]; then
mkdir "/var/named"
fi
echo "options {
directory \"/var/named\";
dump-file \"/var/named/data/cache_dump.db\";
statistics-file \"/var/named/data/named_stats.txt\";
memstatistics-file \"/var/named/data/named_mem_stats.txt\";
directory $DIRECTORY;
dump-file \"$DIRECTORY/data/cache_dump.db\";
statistics-file \"$DIRECTORY/data/named_stats.txt\";
memstatistics-file \"$DIRECTORY/data/named_mem_stats.txt\";
recursion yes;
forward only;
forwarders {" >$FILE