2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-14 10:20:31 +00:00

fix 2206 add comments in /etc/named.conf indicating that it is generated by xCAT

This commit is contained in:
bybai
2017-01-04 02:18:32 -05:00
parent 6fe66551e1
commit 9432dbb5c8

View File

@ -1370,6 +1370,7 @@ sub update_namedconf {
flock($newnameconf, LOCK_EX);
seek($newnameconf, 0, 0);
truncate($newnameconf, 0);
print $newnameconf "\#This file is generated by xCAT.\n";
for my $l (@newnamed) { print $newnameconf $l; }
flock($newnameconf, LOCK_UN);
close($newnameconf);