mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 11:22:27 +00:00 
			
		
		
		
	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:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user