mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-12 17:30:19 +00:00
Be less paranoid about backing up dhcpd.conf files
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@862 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
@ -230,9 +230,6 @@ sub process_request {
|
||||
if (grep /-n/,@{$req->{arg}}) {
|
||||
if (-e "/etc/dhcpd.conf") {
|
||||
my $bakname = "/etc/dhcpd.conf.xcatbak";
|
||||
while (-e $bakname) { #look for unused backup name..
|
||||
$bakname .= "~";
|
||||
}
|
||||
rename("/etc/dhcpd.conf",$bakname);
|
||||
}
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user