From 0d8d4241fbf7748d4128cd5d2e615a36b41284ed Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Mon, 4 Feb 2013 18:22:12 +0000 Subject: [PATCH] Fix non-DOS line terminators in windows template data fill in git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15045 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/perl/xCAT/Template.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xCAT-server/lib/perl/xCAT/Template.pm b/xCAT-server/lib/perl/xCAT/Template.pm index 0c906276b..3f94ad6ee 100644 --- a/xCAT-server/lib/perl/xCAT/Template.pm +++ b/xCAT-server/lib/perl/xCAT/Template.pm @@ -302,7 +302,7 @@ sub windows_account_data { } else { $domain = $::XCATSITEVALS{domain}; } - $useraccountxml.="\n\nAdministrators\nDomain Admins\n\n".$domain."\n\n\n"; + $useraccountxml.="\r\n\r\nAdministrators\r\nDomain Admins\r\n\r\n".$domain."\r\n\r\n\r\n"; return $useraccountxml; } #this will examine table data, decide *if* a Microsoft-Windows-UnattendedJoin is warranted @@ -335,7 +335,7 @@ sub windows_join_data { } else { $domain = $::XCATSITEVALS{domain}; } - my $componentxml = ''."\n\n".$domain."\n"; + my $componentxml = ''."\r\n\r\n".$domain."\r\n"; if ($ou) { $componentxml .= "".$ou."\n"; } @@ -364,9 +364,9 @@ sub windows_join_data { } } unless ($username and $password) { die "Missing active directory admin auth data from passwd table" } - $componentxml .= "".$domain."\n".$username."\n".$password."\n\n"; + $componentxml .= "".$domain."\r\n".$username."\r\n".$password."\r\n\r\n"; } - $componentxml .= "\n\n"; + $componentxml .= "\r\n\r\n"; } sub get_win_prodkey {