mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 03:12:30 +00:00 
			
		
		
		
	chown for the dns db file on ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14639 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -715,7 +715,12 @@ sub update_zones { | ||||
|             } | ||||
|             flock($zonehdl,LOCK_UN); | ||||
|             close($zonehdl); | ||||
|             chown(scalar(getpwnam('named')),scalar(getgrnam('named')),$dbdir."/db.$zonefilename"); | ||||
|             if ( $distro =~ /ubuntu.*/ ){ | ||||
|                 chown(scalar(getpwnam('root')),scalar(getgrnam('bind')),$dbdir."/db.$zonefilename"); | ||||
|             } | ||||
|             else{ | ||||
|                 chown(scalar(getpwnam('named')),scalar(getgrnam('named')),$dbdir."/db.$zonefilename"); | ||||
|             } | ||||
|             $ctx->{restartneeded}=1; | ||||
|         } | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user