Author: fapeeler Date: Fri Oct 2 19:18:12 2009 New Revision: 821135 URL: http://svn.apache.org/viewvc?rev=821135&view=rev Log: VCL-242
added fix to update the permissions on currentimage.txt Modified: incubator/vcl/trunk/managementnode/lib/VCL/utils.pm Modified: incubator/vcl/trunk/managementnode/lib/VCL/utils.pm URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/lib/VCL/utils.pm?rev=821135&r1=821134&r2=821135&view=diff ============================================================================== --- incubator/vcl/trunk/managementnode/lib/VCL/utils.pm (original) +++ incubator/vcl/trunk/managementnode/lib/VCL/utils.pm Fri Oct 2 19:18:12 2009 @@ -6495,6 +6495,12 @@ my $current_image_contents = join('\\r\\n', @current_image_lines); + #Make sure currentimage.txt writable + my $chown_command = "chown root currentimage.txt; chmod 777 currentimage.txt"; + if(run_ssh_command($computer_node_name, $image_identity, $chown_command)){ + notify($ERRORS{'OK'}, 0, "updated ownership and permissions on currentimage.txt"); + } + my $command = 'echo -e "' . $current_image_contents . '" > currentimage.txt & cat currentimage.txt'; # Copy the temp file to the node as currentimage.txt